From 3e3cae507cebb364ea23ff5b6b70d5c84db3dd11 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 22 Jul 2020 23:36:46 +0100 Subject: More transactions enabled. --- parsers/imports.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'parsers/imports.py') diff --git a/parsers/imports.py b/parsers/imports.py index ddfe69f..0d5420b 100644 --- a/parsers/imports.py +++ b/parsers/imports.py @@ -59,15 +59,14 @@ def import_survex(): def import_loadpos(): # when this import is moved to the top with the rest it all crashes horribly - with transaction.atomic(): - import troggle.parsers.survex - print(" - Survex entrances x/y/z Positions") import troggle.parsers.survex + print(" - Survex entrances x/y/z Positions") + with transaction.atomic(): troggle.parsers.survex.LoadPositions() def import_drawingsfiles(): print("-- Importing Drawings files") - import troggle.parsers.survex + with transaction.atomic(): troggle.parsers.surveys.LoadDrawingFiles() # Fossil. -- cgit v1.2.3