mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-27 20:32:37 +01:00
Only run update configs on approved packages
This commit is contained in:
@ -371,6 +371,9 @@ def check_for_updates():
|
|||||||
for update_config in PackageUpdateConfig.query.all():
|
for update_config in PackageUpdateConfig.query.all():
|
||||||
update_config: PackageUpdateConfig
|
update_config: PackageUpdateConfig
|
||||||
|
|
||||||
|
if not update_config.package.approved:
|
||||||
|
continue
|
||||||
|
|
||||||
if update_config.package.repo is None:
|
if update_config.package.repo is None:
|
||||||
db.session.delete(update_config)
|
db.session.delete(update_config)
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user