dépôts
/
cavote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug
[cavote.git]
/
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
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':
if votes == 'all':
votes = query_db(basequery + ' order by id desc')
elif votes == 'archive':