summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-12-16 15:54:52 -0500
committermorpheus65535 <[email protected]>2021-12-16 15:54:52 -0500
commit6192df6019bcd1c22e1c3ae2da4f83957b8194a5 (patch)
tree9f55d806e0d1d1b6b10455d3b29662074dffd2a3
parentb5c66e1470991ac6896b311096a78c8bef21ef9e (diff)
downloadbazarr-6192df6019bcd1c22e1c3ae2da4f83957b8194a5.tar.gz
bazarr-6192df6019bcd1c22e1c3ae2da4f83957b8194a5.zip
Fixed exception when creating a new languages profile.
-rw-r--r--bazarr/api/system/settings.py4
-rw-r--r--frontend/src/Settings/Languages/table.tsx2
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);
}}