From 5fc780dac60fec10bb240528e53851b17dd76492 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 31 Jul 2016 14:45:58 +0200 Subject: [PATCH] Typo resulting in syntax error --- digimarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/digimarks.py b/digimarks.py index 6f28fcd..4ba4dac 100644 --- a/digimarks.py +++ b/digimarks.py @@ -314,12 +314,12 @@ def addingbookmark(userkey): if request.method == 'POST': bookmark = updatebookmark(userkey, request) if not bookmark: - return redirect(url_for('addbookmark', userkey=userkey, message='No url provided'), tags=all_tags[userkey]) + return redirect(url_for('addbookmark', userkey=userkey, message='No url provided', tags=all_tags[userkey])) if type(bookmark).__name__ == 'Response': return bookmark all_tags[userkey] = get_tags_for_user(userkey) return redirect(url_for('editbookmark', userkey=userkey, urlhash=bookmark.url_hash)) - return redirect(url_for('addbookmark')) + return redirect(url_for('addbookmark', userkey=userkey, tags=all_tags[userkey])) @app.route('///editing', methods=['GET', 'POST'])