mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
fix bounds check in vote accumulaton. resolves JimmXinu#1154
This commit is contained in:
parent
5ac38fc327
commit
84dad2ec43
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ class FictionLiveAdapter(BaseSiteAdapter):
|
|||
# so let's just ignore non-int values here
|
||||
if not isinstance(v, int):
|
||||
continue
|
||||
if 0 <= v <= len(choices):
|
||||
if 0 <= v < len(choices):
|
||||
output[v] += 1
|
||||
return output
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue