Fix reimport packages not importing unapproved package
This commit is contained in:
parent
85551539f0
commit
0b06cfffba
|
@ -57,7 +57,7 @@ def admin_page():
|
|||
|
||||
elif action == "reimportpackages":
|
||||
tasks = []
|
||||
for package in Package.query.filter_by(approved=True, soft_deleted=False).all():
|
||||
for package in Package.query.filter_by(soft_deleted=False).all():
|
||||
release = package.releases.first()
|
||||
if release:
|
||||
zippath = release.url.replace("/uploads/", app.config["UPLOAD_DIR"])
|
||||
|
|
Loading…
Reference in New Issue