mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-19 15:24:18 +01:00
Merge branch 'master' of https://github.com/JimmXinu/FanFicFare
This commit is contained in:
commit
c70ec078ea
1 changed files with 4 additions and 0 deletions
|
|
@ -386,6 +386,10 @@ class FictionLiveAdapter(BaseSiteAdapter):
|
|||
if 'multiple' in chunk and chunk['multiple'] == False:
|
||||
vote = [vote] # normalize to list
|
||||
for v in vote:
|
||||
# v should only be int, but there is at least one story where some unrelated string was returned,
|
||||
# so let's just ignore non-int values here
|
||||
if not isinstance(v, int):
|
||||
continue
|
||||
if 0 <= v <= len(choices):
|
||||
output[v] += 1
|
||||
return output
|
||||
|
|
|
|||
Loading…
Reference in a new issue