mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-04 05:52:24 +08:00
no log: fixed null values returned by system/languages/profiles API endpoint
This commit is contained in:
parent
ee74844c31
commit
9c7089efff
1 changed files with 2 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue