Fix postReleaseCheckUpdate running twice on release creation

This commit is contained in:
rubenwardy
2020-12-31 18:19:07 +00:00
parent afb699f8d3
commit 6ebab36877
4 changed files with 5 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ from wtforms.validators import InputRequired, Length
from app.models import *
from app.tasks.forumtasks import importTopicList, checkAllForumAccounts
from app.tasks.importtasks import importRepoScreenshot, checkZipRelease, updateMetaFromRelease, importForeignDownloads
from app.tasks.importtasks import importRepoScreenshot, checkZipRelease, importForeignDownloads
from app.utils import rank_required, addAuditLog, addNotification
from . import bp
@@ -64,7 +64,7 @@ def admin_page():
release = package.releases.first()
if release:
zippath = release.url.replace("/uploads/", app.config["UPLOAD_DIR"])
tasks.append(updateMetaFromRelease.s(release.id, zippath))
tasks.append(checkZipRelease.s(release.id, zippath))
result = group(tasks).apply_async()