From edbe793c6815d64504b9418a8cf2612c5ad5e3b1 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 20 May 2020 12:18:12 +0100 Subject: [PATCH] added profile option --- databaseReset.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/databaseReset.py b/databaseReset.py index f4b12d7..d8bc926 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -357,6 +357,7 @@ def usage(): survexpos - just the x/y/z Pos out of the survex files tunnel - read in the Tunnel files - which scans the survey scans too + profile - print the profile from previous runs. Import nothing. resetend - (archaic?) writecaves - *disabled* (archaic?) @@ -424,7 +425,7 @@ if __name__ == "__main__": jq.enq("survexpos",import_survexpos) elif "survexpos" in sys.argv: jq.enq("survexpos",import_survexpos) - elif "surveys" in sys.argv: + elif "surveyimgs" in sys.argv: jq.enq("surveyimgs",import_surveyimgs) elif "tunnel" in sys.argv: jq.enq("tunnel",import_tunnelfiles) @@ -434,14 +435,12 @@ if __name__ == "__main__": jq.enq("QMs",import_QMs) jq.enq("tunnel",import_tunnelfiles) jq.enq("surveyimgs",import_surveyimgs) - #import_descriptions() # no longer present - #parse_descriptions() # no longer present - # elif "writeCaves" in sys.argv: - # writeCaves() # no longer present elif "autologbooks" in sys.argv: # untested in 2020 import_auto_logbooks() elif "dumplogbooks" in sys.argv: # untested in 2020 dumplogbooks() + elif "profile" in sys.argv: + jq.showprofile() else: usage() print("%s not recognised as a command." % sys.argv[1])