From 811554c78d83fc44ca6ca4e3d7bc50d70076d1b3 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 13 Dec 2018 22:06:23 +0200 Subject: [PATCH] NOT a voter.. --- abot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abot.py b/abot.py index c1f07c8..6e10295 100644 --- a/abot.py +++ b/abot.py @@ -65,7 +65,7 @@ def vote(key, token = None): if is_expired(form): return render_template('blank.html', message = "Voting has closed") if is_closed_vote(form): - if is_voter(key, token): + if not is_voter(key, token): return render_template('blank.html', message = "Token invalid") if has_voted(key, token): return render_template('blank.html', message = "Token already used")