summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-10-15 16:13:27 -0400
committermorpheus65535 <[email protected]>2023-10-15 16:13:27 -0400
commit2a8a4030b9e032392f172e73679ba47bdb060b77 (patch)
treeff39875506fce7c69c8baa4f6740218a7d7c4634
parentc89da3e6192a519ccefa6bb7d9f9c9eaa280d373 (diff)
downloadbazarr-2a8a4030b9e032392f172e73679ba47bdb060b77.tar.gz
bazarr-2a8a4030b9e032392f172e73679ba47bdb060b77.zip
Fixed datatype issue when creating a new languages profile with PostgreSQL.v1.3.2-beta.1
-rw-r--r--bazarr/api/system/settings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/api/system/settings.py b/bazarr/api/system/settings.py
index 1dcfbd48b..af722dcd3 100644
--- a/bazarr/api/system/settings.py
+++ b/bazarr/api/system/settings.py
@@ -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