fix error when day times out with a tie vote

This commit is contained in:
jacob1 2016-09-03 14:28:39 -04:00
parent 0ee47253f4
commit f51833d4c4

View File

@ -2017,7 +2017,7 @@ def hurry_up(cli, gameid, change):
maxfound = (0, "") maxfound = (0, "")
for votee, voters in votelist.items(): for votee, voters in votelist.items():
if numvotes[votee] > maxfound[0]: if numvotes[votee] > maxfound[0]:
maxfound = (numvotes, votee) maxfound = (numvotes[votee], votee)
found_dup = False found_dup = False
elif numvotes[votee] == maxfound[0]: elif numvotes[votee] == maxfound[0]:
found_dup = True found_dup = True