mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 17:13:35 +08:00
Fixed datatype issue when creating a new languages profile with PostgreSQL.
This commit is contained in:
parent
c89da3e619
commit
2a8a4030b9
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ class SystemSettings(Resource):
|
|||
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'])
|
||||
|
@ -85,7 +85,7 @@ class SystemSettings(Resource):
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue