Skip to content

Commit

Permalink
poll fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pefoley2 committed Aug 20, 2013
1 parent 2369e72 commit b93dd60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commands/vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def end_poll(pollfile, polls, poll):
poll = int(poll)
if len(polls) <= poll:
return "Invalid poll index."
if not polls[poll]['active']:
return "Poll already ended."
polls[poll]['active'] = False
save_polls(pollfile, polls)
return "Poll ended."
Expand Down

0 comments on commit b93dd60

Please sign in to comment.