fix bounds check in vote accumulaton. resolves JimmXinu#1154

This commit is contained in:
Hazel Shanks 2025-02-09 19:26:38 +13:00 committed by Jim Miller
parent 5ac38fc327
commit 84dad2ec43

View file

@ -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