From 39c622d5bfab0ddd4c75b9d643ecbe10d724e022 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 30 Apr 2020 23:15:57 +0100 Subject: dbReset now loads into memory first (fast err checking), then into db --- core/views_other.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/views_other.py') 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+"()") -- cgit v1.2.3