2
0
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:
Philip Sargent
2020-06-28 15:57:40 +01:00
parent bf1c683fd0
commit 459ed11b58
4 changed files with 11 additions and 3 deletions

View File

@@ -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)