diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-08-09 11:10:43 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-08-09 11:10:45 +0100 |
commit | 18b9fb38766260aabeab5ce1cd98c7f49d57c91d (patch) | |
tree | 62d9d1a6a4f9dd63d3f3d2d875ea0bdbf370e7ca /app/utils.py | |
parent | 1da86f27a7d92e0659b9fc1ae0aa530ebe9a8fd4 (diff) | |
download | cheatdb-18b9fb38766260aabeab5ce1cd98c7f49d57c91d.tar.xz |
Fix typo in zip uploading
Diffstat (limited to 'app/utils.py')
-rw-r--r-- | app/utils.py | 2 |
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") |