From 6192df6019bcd1c22e1c3ae2da4f83957b8194a5 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 16 Dec 2021 15:54:52 -0500 Subject: [PATCH] Fixed exception when creating a new languages profile. --- bazarr/api/system/settings.py | 4 ++-- 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); }}