Skip to content

Commit

Permalink
🐞 Trustees struggle to respond to director (#195)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#402
  • Loading branch information
Findeton committed Apr 23, 2024
1 parent fcd69f8 commit a1335c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/models/Models.scala
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ object Elections {
current_state != DOING_TALLY &&
current_state != STOPPED // This is allowed for virtual elections
) ||
(state == TALLY_ERROR && current_state != DOING_TALLY) ||
(
state == TALLY_ERROR &&
current_state != DOING_TALLY &&
current_state != STOPPED
) ||
(
state == RESULTS_OK &&
current_state != TALLY_OK &&
Expand Down Expand Up @@ -403,9 +407,8 @@ object Elections {
case TALLY_ERROR =>
elections
.filter(_.id === id)
.map(e => (e.state, e.tally_state))
.map(e => (e.tally_state))
.update(
state,
state
)
case RESULTS_OK =>
Expand Down

0 comments on commit a1335c8

Please sign in to comment.