mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 04:22:07 +08:00
Fixed exception when creating a new languages profile.
This commit is contained in:
parent
b5c66e1470
commit
6192df6019
2 changed files with 4 additions and 2 deletions
|
@ -70,8 +70,8 @@ class SystemSettings(Resource):
|
|||
TableLanguagesProfiles.name: item['name'],
|
||||
TableLanguagesProfiles.cutoff: item['cutoff'] if item['cutoff'] != 'null' else None,
|
||||
TableLanguagesProfiles.items: json.dumps(item['items']),
|
||||
TableLanguagesProfiles.mustContain: item['must_contain'],
|
||||
TableLanguagesProfiles.mustNotContain: item['must_not_contain'],
|
||||
TableLanguagesProfiles.mustContain: item['mustContain'],
|
||||
TableLanguagesProfiles.mustNotContain: item['mustNotContain'],
|
||||
}).execute()
|
||||
for profileId in existing:
|
||||
# Unassign this profileId from series and movies
|
||||
|
|
|
@ -172,6 +172,8 @@ const Table: FunctionComponent = () => {
|
|||
name: "",
|
||||
items: [],
|
||||
cutoff: null,
|
||||
mustContain: [],
|
||||
mustNotContain: [],
|
||||
};
|
||||
showModal("profile", profile);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue