Permalink
Browse files

Flash on adding nick

  • Loading branch information...
1 parent 24fd4ac commit 369c43c373b8a422cb62c22303f3334dd971529b @olleolleolle olleolleolle committed Oct 24, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 mugshots.py
View
@@ -124,10 +124,13 @@ def join_forskningsavdelningen():
"""Add given nick to the database.
"""
nick = request.args.get("nick", "")
+ message = "Hm, what?"
if nick:
db.sadd("nicks", nick)
- return '1'
- return '0'
+ message = "Tack, tillagd."
+ flash(message)
+ return redirect(url_for('index'))
+
@app.route("/report")
def report_one_month():

0 comments on commit 369c43c

Please sign in to comment.