diff options
author | rubenwardy <rw@rubenwardy.com> | 2019-03-29 20:47:48 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-03-29 20:52:08 +0000 |
commit | 93a74b7681bac8cfe5ea5092943bf76af207a3d0 (patch) | |
tree | 869b0ce3d8b763d24cca844e5d8a6f66cf5923d4 /app/tasks/importtasks.py | |
parent | 2677e088a85f9d31b7939874ea414d4ce5429e23 (diff) | |
download | cheatdb-93a74b7681bac8cfe5ea5092943bf76af207a3d0.tar.xz |
Fix release auto-approval
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r-- | app/tasks/importtasks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index dc46f46..a9277c5 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -348,6 +348,7 @@ def makeVCSReleaseFromGithub(id, branch, release, url): release.url = urlmaker.getCommitDownload(commits[0]["sha"]) release.task_id = None release.commit_hash = commits[0]["sha"] + release.approve(release.package.author) print(release.url) db.session.commit() @@ -379,6 +380,7 @@ def makeVCSRelease(id, branch): release.url = "/uploads/" + filename release.task_id = None release.commit_hash = repo.head.object.hexsha + release.approve(release.package.author) print(release.url) db.session.commit() |