Debug
authorGuillaume Subiron <maethor@subiron.org>
Tue, 29 May 2012 15:22:46 +0000 (17:22 +0200)
committerJulien Rabier <taziden@flexiden.org>
Tue, 29 May 2012 17:17:35 +0000 (19:17 +0200)
main.py

diff --git a/main.py b/main.py
index ac71277..298c721 100755 (executable)
--- a/main.py
+++ b/main.py
@@ -214,7 +214,7 @@ def del_role(idrole):
 def show_votes(votes):
     today = date.today()
     active_button = votes
-    basequery = 'select *, roles.name as rolename from votes join roles on roles.id=votes.id_role where open=1'
+    basequery = 'select *, roles.name as rolename from votes join roles on roles.id=votes.id_role where is_open=1'
     if votes == 'all':
         votes = query_db(basequery + ' order by id desc')
     elif votes == 'archive':