diff options
author | morpheus65535 <[email protected]> | 2021-12-16 15:54:52 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-12-16 15:54:52 -0500 |
commit | 6192df6019bcd1c22e1c3ae2da4f83957b8194a5 (patch) | |
tree | 9f55d806e0d1d1b6b10455d3b29662074dffd2a3 | |
parent | b5c66e1470991ac6896b311096a78c8bef21ef9e (diff) | |
download | bazarr-6192df6019bcd1c22e1c3ae2da4f83957b8194a5.tar.gz bazarr-6192df6019bcd1c22e1c3ae2da4f83957b8194a5.zip |
Fixed exception when creating a new languages profile.
-rw-r--r-- | bazarr/api/system/settings.py | 4 | ||||
-rw-r--r-- | frontend/src/Settings/Languages/table.tsx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bazarr/api/system/settings.py b/bazarr/api/system/settings.py index 50f5d7473..8cdbc90f3 100644 --- a/bazarr/api/system/settings.py +++ b/bazarr/api/system/settings.py @@ -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 diff --git a/frontend/src/Settings/Languages/table.tsx b/frontend/src/Settings/Languages/table.tsx index 09c75d138..10b71ca60 100644 --- a/frontend/src/Settings/Languages/table.tsx +++ b/frontend/src/Settings/Languages/table.tsx @@ -172,6 +172,8 @@ const Table: FunctionComponent = () => { name: "", items: [], cutoff: null, + mustContain: [], + mustNotContain: [], }; showModal("profile", profile); }} |