aboutsummaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-08-09 11:10:43 +0100
committerrubenwardy <rw@rubenwardy.com>2019-08-09 11:10:45 +0100
commit18b9fb38766260aabeab5ce1cd98c7f49d57c91d (patch)
tree62d9d1a6a4f9dd63d3f3d2d875ea0bdbf370e7ca /app/utils.py
parent1da86f27a7d92e0659b9fc1ae0aa530ebe9a8fd4 (diff)
downloadcheatdb-18b9fb38766260aabeab5ce1cd98c7f49d57c91d.tar.xz
Fix typo in zip uploading
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/utils.py b/app/utils.py
index 034c39c..fd36392 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -50,7 +50,7 @@ def doFileUpload(file, fileType, fileTypeDesc):
if fileType == "image":
allowedExtensions = ["jpg", "jpeg", "png"]
isImage = True
- elif filetype == "zip":
+ elif fileType == "zip":
allowedExtensions = ["zip"]
else:
raise Exception("Invalid fileType")