aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/importtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-18 01:20:32 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-18 01:20:32 +0000
commit095494f96f00b33dc9e956b094105c49b5bc558b (patch)
tree017cbacda779f691ac0e38fca83e86e25864b0d9 /app/tasks/importtasks.py
parent6f230ee4b27445a4d487b9166660dbafaf2f7912 (diff)
downloadcheatdb-095494f96f00b33dc9e956b094105c49b5bc558b.tar.xz
Improve Docker configurations
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r--app/tasks/importtasks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index ed43584..ebe8e1e 100644
--- a/app/tasks/importtasks.py
+++ b/app/tasks/importtasks.py
@@ -389,7 +389,7 @@ def makeVCSRelease(id, branch):
try:
filename = randomString(10) + ".zip"
- destPath = os.path.join("app/public/uploads", filename)
+ destPath = os.path.join(app.config["UPLOAD_DIR"], filename)
with open(destPath, "wb") as fp:
repo.archive(fp, format="zip")
@@ -424,7 +424,7 @@ def importRepoScreenshot(id):
sourcePath = gitDir + "/screenshot." + ext
if os.path.isfile(sourcePath):
filename = randomString(10) + "." + ext
- destPath = os.path.join("app/public/uploads", filename)
+ destPath = os.path.join(app.config["UPLOAD_DIR"], filename)
shutil.copyfile(sourcePath, destPath)
ss = PackageScreenshot()