Fix broken save.

This commit is contained in:
Edward Betts 2019-10-04 17:00:25 +01:00
parent 0a6f6308c1
commit ec4cb0e987

2
app.py
View file

@ -189,7 +189,7 @@ def user_settings():
return 'flipped. find more is ' + display return 'flipped. find more is ' + display
def no_existing_edit(item_id, depicts_id): 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 return q.count() == 0
@app.route('/save/Q<int:item_id>', methods=['POST']) @app.route('/save/Q<int:item_id>', methods=['POST'])