Fixed exception when creating a new languages profile.

This commit is contained in:
morpheus65535 2021-12-16 15:54:52 -05:00
parent b5c66e1470
commit 6192df6019
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -172,6 +172,8 @@ const Table: FunctionComponent = () => {
name: "",
items: [],
cutoff: null,
mustContain: [],
mustNotContain: [],
};
showModal("profile", profile);
}}