Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04e8ae5bdd | ||
|
|
18b9fb3876 |
@@ -29,6 +29,10 @@ from app.utils import randomString
|
||||
|
||||
class GithubURLMaker:
|
||||
def __init__(self, url):
|
||||
self.baseUrl = None
|
||||
self.user = None
|
||||
self.repo = None
|
||||
|
||||
# Rewrite path
|
||||
import re
|
||||
m = re.search("^\/([^\/]+)\/([^\/]+)\/?$", url.path)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user