no log: fixed null values returned by system/languages/profiles API endpoint

This commit is contained in:
morpheus65535 2022-04-05 09:50:14 -04:00
parent ee74844c31
commit 9c7089efff
1 changed files with 2 additions and 4 deletions

View File

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