Skip to content

Commit

Permalink
recompute results when watching partial results, for admin only
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed May 3, 2016
1 parent 1010fc5 commit 09cd634
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/default.py
Expand Up @@ -262,7 +262,8 @@ def results():
session.flash = T('Results not yet available') session.flash = T('Results not yet available')
redirect(URL('index')) redirect(URL('index'))
response.subtitle = election.title + T(' / Results') response.subtitle = election.title + T(' / Results')
if DEBUG_MODE or not election.counters: if (DEBUG_MODE or not election.counters or
not election.deadline or request.now<=election.deadline):
compute_results(election) compute_results(election)
form = ballot2form(election.ballot_model, form = ballot2form(election.ballot_model,
counters=unpack_counters(election.counters)) counters=unpack_counters(election.counters))
Expand Down

0 comments on commit 09cd634

Please sign in to comment.