forked from expo/troggle
added rebuild command option
This commit is contained in:
parent
52cec290d9
commit
3ce8b67b4f
@ -81,6 +81,15 @@ def import_tunnelfiles():
|
|||||||
parsers.surveys.LoadTunnelFiles()
|
parsers.surveys.LoadTunnelFiles()
|
||||||
|
|
||||||
|
|
||||||
|
def rebuild():
|
||||||
|
""" Wipe the troggle database and sets up structure but imports nothing
|
||||||
|
"""
|
||||||
|
reload_db()
|
||||||
|
make_dirs()
|
||||||
|
pageredirects()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def reset():
|
def reset():
|
||||||
""" Wipe the troggle database and import everything from legacy data
|
""" Wipe the troggle database and import everything from legacy data
|
||||||
"""
|
"""
|
||||||
@ -162,6 +171,7 @@ def pageredirects():
|
|||||||
def usage():
|
def usage():
|
||||||
print("""Usage is 'python databaseReset.py <command>'
|
print("""Usage is 'python databaseReset.py <command>'
|
||||||
where command is:
|
where command is:
|
||||||
|
rebuild - this reloads database and set up directories & redirects only
|
||||||
reset - this is normal usage, clear database and reread everything from files - time-consuming
|
reset - this is normal usage, clear database and reread everything from files - time-consuming
|
||||||
desc - NOT WORKING: function resetdesc() missing
|
desc - NOT WORKING: function resetdesc() missing
|
||||||
caves - read in the caves
|
caves - read in the caves
|
||||||
|
Loading…
x
Reference in New Issue
Block a user