summaryrefslogtreecommitdiff
path: root/kosten/app
diff options
context:
space:
mode:
Diffstat (limited to 'kosten/app')
-rw-r--r--kosten/app/model.py6
-rw-r--r--kosten/app/views/consts.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/kosten/app/model.py b/kosten/app/model.py
index 4663685..04a41b9 100644
--- a/kosten/app/model.py
+++ b/kosten/app/model.py
@@ -11,9 +11,9 @@ from . import app
db = SQLAlchemy(app)
-__all__ = ['db', \
- 'Category', 'SingleExpense', 'ConstExpense', \
- 'CatExpense', 'MonthExpense']
+__all__ = ['db',
+ 'Category', 'SingleExpense', 'ConstExpense',
+ 'CatExpense', 'MonthExpense']
Column = db.Column
ReqColumn = partial(Column, nullable = False)
diff --git a/kosten/app/views/consts.py b/kosten/app/views/consts.py
index 3ac5175..65c0e65 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 == None)
+ filter = (CE.next is None)
if cur and cur.id is not None: # not empty
filter = sql.or_(CE.next == cur, filter)