1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Typo resulting in syntax error

This commit is contained in:
2016-07-31 14:45:58 +02:00
parent 4bf7af08d5
commit 5fc780dac6

View File

@@ -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('/<userkey>/<urlhash>/editing', methods=['GET', 'POST'])