Add 'update-all' capability to master script
parent
28ac88f5bd
commit
3848b3dedd
10
master.py
10
master.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue