X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_entite%28%24id_article%2C?a=blobdiff_plain;f=main.py;h=3effbb2a410fd3c0dc2f25652e75940e8cdafad0;hb=136c353bf4a1c864d8efd90609732f2ba886b7e0;hp=46653b34600176c9d1859b9ff29fe40b20267e5b;hpb=f43f9263fc772dd9efcaeb62eff129d847ff9e86;p=cavote.git diff --git a/main.py b/main.py index 46653b3..3effbb2 100755 --- a/main.py +++ b/main.py @@ -421,6 +421,7 @@ def vote(idvote): else: vote['nb_votes'] = tmp['nb'] vote['percent'] = int((float(vote['nb_votes']) / float(vote['max_votes'])) * 100) + # :TODO:maethor:120606: Flash if user is concerned by the vote return render_template('vote.html', vote=vote, attachments=attachments, choices=choices, users=users.values(), can_vote=can_vote(idvote, get_userid())) flash(u'Vous n\'avez pas le droit de voir ce vote, désolé.') return redirect(url_for('home'))