From ec4cb0e987aa5d009187d403686237fa08a78263 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 4 Oct 2019 17:00:25 +0100 Subject: [PATCH] Fix broken save. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 420b868..c46288b 100755 --- a/app.py +++ b/app.py @@ -189,7 +189,7 @@ def user_settings(): return 'flipped. find more is ' + display def no_existing_edit(item_id, depicts_id): - q = Edit.query.filter(painting_id=item_id, depicts_id=depicts_id) + q = Edit.query.filter_by(painting_id=item_id, depicts_id=depicts_id) return q.count() == 0 @app.route('/save/Q', methods=['POST'])