From d5342d7096e8bb568f1af7bdc9200b03537bb9fc Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 23 May 2018 21:12:52 +0100 Subject: Move static and uploads to public dir --- app/tasks/importtasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/tasks/importtasks.py') diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 61b60d9..ced48a9 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -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) -- cgit v1.2.3