Fixed exception when creating a new languages profile.

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

@ -70,8 +70,8 @@ class SystemSettings(Resource):
TableLanguagesProfiles.name: item['name'], TableLanguagesProfiles.name: item['name'],
TableLanguagesProfiles.cutoff: item['cutoff'] if item['cutoff'] != 'null' else None, TableLanguagesProfiles.cutoff: item['cutoff'] if item['cutoff'] != 'null' else None,
TableLanguagesProfiles.items: json.dumps(item['items']), TableLanguagesProfiles.items: json.dumps(item['items']),
TableLanguagesProfiles.mustContain: item['must_contain'], TableLanguagesProfiles.mustContain: item['mustContain'],
TableLanguagesProfiles.mustNotContain: item['must_not_contain'], TableLanguagesProfiles.mustNotContain: item['mustNotContain'],
}).execute() }).execute()
for profileId in existing: for profileId in existing:
# Unassign this profileId from series and movies # Unassign this profileId from series and movies

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

Loading…
Cancel
Save