summaryrefslogtreecommitdiff
path: root/kosten/app/views/consts.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-12-13 00:27:00 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-12-13 00:27:00 +0100
commit4433fd95e86be0093cd9927aa3e6b601ff3c9586 (patch)
treeefd47aef4bbc32057b1ae05295430499dadc0317 /kosten/app/views/consts.py
parentf69e933c880a4b15624e0725b3ed315984af289e (diff)
downloadkosten-4433fd95e86be0093cd9927aa3e6b601ff3c9586.tar.gz
kosten-4433fd95e86be0093cd9927aa3e6b601ff3c9586.tar.bz2
kosten-4433fd95e86be0093cd9927aa3e6b601ff3c9586.zip
Fix NULL check query
Diffstat (limited to 'kosten/app/views/consts.py')
-rw-r--r--kosten/app/views/consts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kosten/app/views/consts.py b/kosten/app/views/consts.py
index 65c0e65..47af1e5 100644
--- a/kosten/app/views/consts.py
+++ b/kosten/app/views/consts.py
@@ -59,7 +59,7 @@ class ConstForm(F.Form):
# init prev_list
CE = ConstExpense
- filter = (CE.next is None)
+ filter = (CE.next != None)
if cur and cur.id is not None: # not empty
filter = sql.or_(CE.next == cur, filter)