diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-23 21:12:52 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-23 21:15:21 +0100 |
commit | d5342d7096e8bb568f1af7bdc9200b03537bb9fc (patch) | |
tree | b59e4d6a9b0b8c289cec58b597c9fccbba15e8cd /app/tasks/importtasks.py | |
parent | 59f75bb71c361ae442febf3666838ef055849c30 (diff) | |
download | cheatdb-d5342d7096e8bb568f1af7bdc9200b03537bb9fc.tar.xz |
Move static and uploads to public dir
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r-- | app/tasks/importtasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |