From: Guillaume Subiron Date: Tue, 29 May 2012 15:22:46 +0000 (+0200) Subject: Debug X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;ds=sidebyside;h=92f3176d2fca9034c05c8efd145c0cd0e7b81928;hp=2c48c6a1923496c3d7ee79ea8e1c397db1399f85;p=cavote.git Debug --- diff --git a/main.py b/main.py index ac71277..298c721 100755 --- 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':