diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-27 20:44:24 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-27 20:44:24 +0100 |
commit | 5e478c7eb0a2bcd23ca46d1c4bd200750fbc9231 (patch) | |
tree | 5d6088d27a50dcf2b0a17ac863350f8d5100abc8 /parsers/imports.py | |
parent | 821aaa1f66b003c34a8d568ff1dfdae057c17091 (diff) | |
download | troggle-5e478c7eb0a2bcd23ca46d1c4bd200750fbc9231.tar.gz troggle-5e478c7eb0a2bcd23ca46d1c4bd200750fbc9231.tar.bz2 troggle-5e478c7eb0a2bcd23ca46d1c4bd200750fbc9231.zip |
Imports in control panel work again
Diffstat (limited to 'parsers/imports.py')
-rw-r--r-- | parsers/imports.py | 5 |
1 files changed, 3 insertions, 2 deletions
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() |