Skip to content

Commit

Permalink
Fixed datatype issue when creating a new languages profile with Postg…
Browse files Browse the repository at this point in the history
…reSQL.
  • Loading branch information
morpheus65535 committed Oct 15, 2023
1 parent c89da3e commit 2a8a403
Showing 1 changed file with 2 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,7 +70,7 @@ def post(self):
items=json.dumps(item['items']),
mustContain=str(item['mustContain']),
mustNotContain=str(item['mustNotContain']),
originalFormat=item['originalFormat'] if item['originalFormat'] != 'null' else None,
originalFormat=int(item['originalFormat']) if item['originalFormat'] != 'null' else None,
)
.where(TableLanguagesProfiles.profileId == item['profileId']))
existing.remove(item['profileId'])
Expand All @@ -85,7 +85,7 @@ def post(self):
items=json.dumps(item['items']),
mustContain=str(item['mustContain']),
mustNotContain=str(item['mustNotContain']),
originalFormat=item['originalFormat'] if item['originalFormat'] != 'null' else None,
originalFormat=int(item['originalFormat']) if item['originalFormat'] != 'null' else None,
))
for profileId in existing:
# Remove deleted profiles
Expand Down

0 comments on commit 2a8a403

Please sign in to comment.