mirror of
https://github.com/kemayo/leech
synced 2026-04-17 10:00:57 +02:00
parent
685120b17d
commit
f89f5163b5
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ class FictionLive(Site):
|
|||
if type(votechoices) == int:
|
||||
votechoices = (votechoices,)
|
||||
for choice in votechoices:
|
||||
if int(choice) in segment['choices']:
|
||||
if int(choice) < len(segment['choices']):
|
||||
# sometimes someone has voted for a presumably-deleted choice
|
||||
choice = segment['choices'][int(choice)]
|
||||
votes[choice] = votes.get(choice, 0) + 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue