summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2022-12-22 00:56:46 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2022-12-22 00:56:46 +0000
commitf23764c4861600adc256ccd48bd45e4c710e761c (patch)
treeb941b499fff061c686b267e114ebb05a4e31d5c5 /databaseReset.py
parenta7a126dd55bbed3d5078bf7a66ec9f2632e48f51 (diff)
downloadtroggle-f23764c4861600adc256ccd48bd45e4c710e761c.tar.gz
troggle-f23764c4861600adc256ccd48bd45e4c710e761c.tar.bz2
troggle-f23764c4861600adc256ccd48bd45e4c710e761c.zip
diagnosing missing entrance file
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/databaseReset.py b/databaseReset.py
index 2d0af58..0c44390 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -46,7 +46,7 @@ from django.db import transaction
from troggle.core.utils import get_process_memory
from troggle.core.models.caves import Cave, Entrance
-from troggle.parsers.imports import import_caves, import_people, import_surveyscans, \
+from troggle.parsers.imports import import_caves, import_people, import_surveyscans, import_ents, \
import_logbooks, import_logbook, import_QMs, import_survex, import_loadpos, import_drawingsfiles
if os.geteuid() == 0:
@@ -343,6 +343,7 @@ def usage():
scans - the survey scans in all the wallets (must run before survex)
drawings - read in the Tunnel & Therion files - which scans the survey scans too
survex - read in the survex files - all the survex blocks and entrances x/y/z
+ ents - read just the entrances x/y/z (must run after survex)
dumplogbooks - Not used. write out autologbooks (not working? use http://localhost:8000/controlpanel )
logbook - read a single logbook. Defautl set in python code
@@ -385,9 +386,8 @@ if __name__ == "__main__":
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)
+ elif "ents" in sys.argv:
+ jq.enq("survex",import_ents)
elif "test2" in sys.argv:
jq.enq("QMs",import_QMs)
jq.enq("drawings",import_drawingsfiles)