[24] Fixes a bug when parsing a comma-separated string of ints

This commit is contained in:
meisnate12 2024-05-21 10:09:15 -04:00
parent aa5fc670c4
commit bd34e2c1a6
3 changed files with 3 additions and 2 deletions

View file

@ -17,5 +17,6 @@ Changed the `overlay_artwork_filetype` Setting to accept `webp_lossy` and `webp_
Fixes #2034 `anilist_userlist` `score` attribute wasn't being validated correctly
Fixes #1367 Error when trying to symlink the logs folder
Fixes #2028 TMDb IDs were being ignored on the report
Fixes a bug when parsing a comma-separated string of ints
Various other Minor Fixes

View file

@ -1 +1 @@
2.0.1-develop23
2.0.1-develop24

View file

@ -794,7 +794,7 @@ def parse(error, attribute, data, datatype=None, methods=None, parent=None, defa
elif datatype == "intlist":
if value:
try:
return [int(v) for v in value if v] if isinstance(value, list) else [int(value)]
return [int(v) for v in value if v] if isinstance(value, list) else get_list(value, int_list=True)
except ValueError:
pass
return []