aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-07-13 20:25:49 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-07-13 20:26:11 +0200
commit4f15b165ff6882725504aa175e891ada1e405418 (patch)
tree367e870de34e474902aa40d88805f71cb8cfdd3e
parentask user if they want to approve the doc after creation (diff)
downloadscout-subs-4f15b165ff6882725504aa175e891ada1e405418.tar.gz
scout-subs-4f15b165ff6882725504aa175e891ada1e405418.zip
fix pdf extension upper case
-rw-r--r--accounts/views.py4
-rw-r--r--version.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/accounts/views.py b/accounts/views.py
index ecaab4a..4a0be18 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -549,7 +549,7 @@ def personal_wrapper(request, errors):
# if multiple files concatenate pictures
im = Image.new("RGB", (0, 0), (255, 255, 255))
for f in files:
- if f.name.endswith(".pdf"):
+ if f.name.endswith(".pdf") or f.name.endswith(".PDF"):
images = convert_from_bytes(f.read())
for i in images:
dst = Image.new('RGB', (max(im.width, i.width), im.height + i.height), (255, 255, 255))
@@ -588,7 +588,7 @@ def personal_wrapper(request, errors):
# if multiple files concatenate pictures
im = Image.new("RGB", (0, 0), (255, 255, 255))
for f in files:
- if f.name.endswith(".pdf"):
+ if f.name.endswith(".pdf") or f.name.endswith(".PDF"):
images = convert_from_bytes(f.read())
for i in images:
dst = Image.new('RGB', (max(im.width, i.width), im.height + i.height), (255, 255, 255))
diff --git a/version.txt b/version.txt
index 81e4c78..bf156bd 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.5
-rev=34
+rev=35