summaryrefslogtreecommitdiffstats
path: root/core/views_other.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip@Muscogee.localdomain>2020-04-30 23:15:57 +0100
committerPhilip Sargent <philip@Muscogee.localdomain>2020-04-30 23:15:57 +0100
commit39c622d5bfab0ddd4c75b9d643ecbe10d724e022 (patch)
tree88f55f5a90ade94bccaa35693dd1a5ed86d7cece /core/views_other.py
parent76a6b501f3fdebe370c9ad37679c97681c47af67 (diff)
downloadtroggle-39c622d5bfab0ddd4c75b9d643ecbe10d724e022.tar.gz
troggle-39c622d5bfab0ddd4c75b9d643ecbe10d724e022.tar.bz2
troggle-39c622d5bfab0ddd4c75b9d643ecbe10d724e022.zip
dbReset now loads into memory first (fast err checking), then into db
Diffstat (limited to 'core/views_other.py')
-rw-r--r--core/views_other.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/views_other.py b/core/views_other.py
index 1297e7f..cc9782b 100644
--- a/core/views_other.py
+++ b/core/views_other.py
@@ -55,8 +55,9 @@ def controlPanel(request):
#importlist is mostly here so that things happen in the correct order.
#http post data seems to come in an unpredictable order, so we do it this way.
- importlist=['reload_db', 'import_people', 'import_cavetab', 'import_logbooks', 'import_surveys', 'import_QMs']
- databaseReset.make_dirs()
+ importlist=['reinit_db', 'import_people', 'import_caves', 'import_logbooks',
+ 'import_survexblks', 'import_QMs', 'import_survexpos', 'import_surveyscans', 'import_tunnelfiles']
+ databaseReset.dirsredirect()
for item in importlist:
if item in request.POST:
print("running"+ " databaseReset."+item+"()")