Move static and uploads to public dir

This commit is contained in:
rubenwardy
2018-05-23 21:12:52 +01:00
parent 59f75bb71c
commit d5342d7096
15 changed files with 6 additions and 8 deletions

View File

@@ -247,7 +247,7 @@ def importRepoScreenshot(id):
try:
filename = randomString(10) + ".png"
imagePath = os.path.join(app.config["UPLOAD_FOLDER"], filename)
imagePath = os.path.join("public/uploads", filename)
print(imagePath)
urllib.request.urlretrieve(urlmaker.getScreenshotURL(), imagePath)