]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix typo in zip uploading
authorrubenwardy <rw@rubenwardy.com>
Fri, 9 Aug 2019 10:10:43 +0000 (11:10 +0100)
committerrubenwardy <rw@rubenwardy.com>
Fri, 9 Aug 2019 10:10:45 +0000 (11:10 +0100)
app/utils.py

index 034c39cdc5e56d1b68064790a89250111dca384e..fd36392664e054a7cb89229ff406a04e30372394 100644 (file)
@@ -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")