mirror of https://github.com/morpheus65535/bazarr
Fixed datatype issue when creating a new languages profile with PostgreSQL.
This commit is contained in:
parent
c89da3e619
commit
2a8a4030b9
|
@ -70,7 +70,7 @@ class SystemSettings(Resource):
|
||||||
items=json.dumps(item['items']),
|
items=json.dumps(item['items']),
|
||||||
mustContain=str(item['mustContain']),
|
mustContain=str(item['mustContain']),
|
||||||
mustNotContain=str(item['mustNotContain']),
|
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']))
|
.where(TableLanguagesProfiles.profileId == item['profileId']))
|
||||||
existing.remove(item['profileId'])
|
existing.remove(item['profileId'])
|
||||||
|
@ -85,7 +85,7 @@ class SystemSettings(Resource):
|
||||||
items=json.dumps(item['items']),
|
items=json.dumps(item['items']),
|
||||||
mustContain=str(item['mustContain']),
|
mustContain=str(item['mustContain']),
|
||||||
mustNotContain=str(item['mustNotContain']),
|
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:
|
for profileId in existing:
|
||||||
# Remove deleted profiles
|
# Remove deleted profiles
|
||||||
|
|
Loading…
Reference in New Issue