Guillaume Subiron 13 years ago
parent
commit
92f3176d2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.py

+ 1 - 1
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':