Skip to content

Commit

Permalink
Fixed exception when creating a new languages profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Dec 16, 2021
1 parent b5c66e1 commit 6192df6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazarr/api/system/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def post(self):
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
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/Settings/Languages/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ const Table: FunctionComponent = () => {
name: "",
items: [],
cutoff: null,
mustContain: [],
mustNotContain: [],
};
showModal("profile", profile);
}}
Expand Down

0 comments on commit 6192df6

Please sign in to comment.