diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-07-22 23:36:46 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-07-22 23:36:46 +0100 |
commit | 3e3cae507cebb364ea23ff5b6b70d5c84db3dd11 (patch) | |
tree | cb69b6f194fdbc2356beaebc9b7d5fb5956d57ea /parsers/imports.py | |
parent | 1ef5924f0c3088340c2d046baf5a77cedf618901 (diff) | |
download | troggle-3e3cae507cebb364ea23ff5b6b70d5c84db3dd11.tar.gz troggle-3e3cae507cebb364ea23ff5b6b70d5c84db3dd11.tar.bz2 troggle-3e3cae507cebb364ea23ff5b6b70d5c84db3dd11.zip |
More transactions enabled.
Diffstat (limited to 'parsers/imports.py')
-rw-r--r-- | parsers/imports.py | 7 |
1 files changed, 3 insertions, 4 deletions
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. |