mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 05:55:06 +00:00
avoiding problem in KH QMs import
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user