Permalink
Browse files

recompute results when watching partial results, for admin only

  • Loading branch information...
mdipierro committed May 3, 2016
1 parent 1010fc5 commit 09cd63432390f2194d9d5b3062ab06ff9c184d9b
Showing with 2 additions and 1 deletion.
  1. +2 −1 controllers/default.py
View
@@ -262,7 +262,8 @@ def results():
session.flash = T('Results not yet available')
redirect(URL('index'))
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)
form = ballot2form(election.ballot_model,
counters=unpack_counters(election.counters))

0 comments on commit 09cd634

Please sign in to comment.