Fixed exception when creating a new languages profile.

pull/1646/head
morpheus65535 2 years ago
parent b5c66e1470
commit 6192df6019

@ -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…
Cancel
Save