From 5e478c7eb0a2bcd23ca46d1c4bd200750fbc9231 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 27 Apr 2021 20:44:24 +0100 Subject: Imports in control panel work again --- parsers/imports.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'parsers/imports.py') diff --git a/parsers/imports.py b/parsers/imports.py index 01c1d7b..6eca632 100644 --- a/parsers/imports.py +++ b/parsers/imports.py @@ -15,7 +15,8 @@ import troggle.parsers.surveys import troggle.parsers.logbooks import troggle.parsers.QMs -'''Master data importUsed only by databaseReset.py currently +'''Master data import. +Used only by databaseReset.py and online controlpanel. ''' def import_caves(): @@ -46,9 +47,9 @@ def import_QMs(): def import_survex(): # when this import is moved to the top with the rest it all crashes horribly + print("-- Importing Survex and Entrance Positions") with transaction.atomic(): import troggle.parsers.survex - print("-- Importing Survex and Entrance Positions") print(" - Survex Blocks") with transaction.atomic(): troggle.parsers.survex.LoadSurvexBlocks() -- cgit v1.2.3