From bd34e2c1a6058e6ddf0edf887b9bc8f1d08ff1af Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 21 May 2024 10:09:15 -0400 Subject: [PATCH] [24] Fixes a bug when parsing a comma-separated string of ints --- CHANGELOG | 1 + VERSION | 2 +- modules/util.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 41a5f4db..39d2f51e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 \ No newline at end of file diff --git a/VERSION b/VERSION index 6bc9f0fc..4df217fd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1-develop23 +2.0.1-develop24 diff --git a/modules/util.py b/modules/util.py index a1aab1ec..1caaad55 100644 --- a/modules/util.py +++ b/modules/util.py @@ -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 []