Add 'update-all' capability to master script

This commit is contained in:
Darks 2022-12-18 00:32:14 +01:00
parent 28ac88f5bd
commit 3848b3dedd
Signed by untrusted user: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,7 @@ Listing commands:
tags Show tags
Install and update commands:
update-all Create or update all assets
update-groups Create or update groups from app/data/
update-forums Create or update the forum tree from app/data/
update-trophies Create or update trophies
@ -69,6 +70,14 @@ def tags(*args):
# Install and update commands
#
def update_all():
update_groups()
update_forums()
update_forums()
update_trophies()
update_tags()
generate_trophy_icons()
def update_groups():
existing = Group.query.all()
@ -350,6 +359,7 @@ commands = {
"forums": forums,
"trophies": trophies,
"tags": tags,
"update-all": update_all,
"update-groups": update_groups,
"update-forums": update_forums,
"update-trophies": update_trophies,