From 9c7089efff030c5da3838e0f42ace2ab01840cbd Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 5 Apr 2022 09:50:14 -0400 Subject: [PATCH] no log: fixed null values returned by system/languages/profiles API endpoint --- bazarr/database.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bazarr/database.py b/bazarr/database.py index 958ec1a9d..a134366a1 100644 --- a/bazarr/database.py +++ b/bazarr/database.py @@ -409,10 +409,8 @@ def update_profile_id_list(): profile_id_list = list(profile_id_list) for profile in profile_id_list: profile['items'] = json.loads(profile['items']) - profile['mustContain'] = ast.literal_eval(profile['mustContain']) if profile['mustContain'] else \ - profile['mustContain'] - profile['mustNotContain'] = ast.literal_eval(profile['mustNotContain']) if profile['mustNotContain'] else \ - profile['mustNotContain'] + profile['mustContain'] = ast.literal_eval(profile['mustContain']) if profile['mustContain'] else [] + profile['mustNotContain'] = ast.literal_eval(profile['mustNotContain']) if profile['mustNotContain'] else [] def get_profiles_list(profile_id=None):