diff options
Diffstat (limited to 'databaseReset.py')
-rw-r--r-- | databaseReset.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/databaseReset.py b/databaseReset.py index d1d6733..9551298 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -278,6 +278,8 @@ def usage(): profile - print the profile from previous runs. Import nothing. reset - normal usage: clear database and reread everything from files - time-consuming + + init - initialisation. Automatic if you run reset. caves - read in the caves (must run first after initialisation) people - read in the people from folk.csv (must run after 'caves') logbooks - read in the logbooks @@ -312,6 +314,8 @@ if __name__ == "__main__": if len(sys.argv)==1: usage() exit() + elif "init" in sys.argv: + jq.enq("reinit",reinit_db) elif "test" in sys.argv: jq.enq("caves",import_caves) jq.enq("people",import_people) |