diff options
Diffstat (limited to 'parsers/survex.py')
-rw-r--r-- | parsers/survex.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/parsers/survex.py b/parsers/survex.py index a290a83..b5542cf 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -19,7 +19,7 @@ from troggle.core.views_caves import MapLocations """A 'survex block' is a *begin...*end set of cave data. -A 'survexscansfolder' is what we today call a "survey scans folder" or a "wallet". +A 'scansfolder' is what we today call a "survey scans folder" or a "wallet". """ rx_braskets= re.compile(r"[()]") @@ -150,7 +150,7 @@ insp = "" callcount = 0 def RecursiveLoad(survexblock, survexfile, fin): """Follows the *include links in all the survex files from the root file 1623.svx - and reads in the survex blocks, other data and the wallet references (survexscansfolder) as it + and reads in the survex blocks, other data and the wallet references (scansfolder) as it goes. This part of the data import process is where the maximum memory is used and where it crashes on memory-constrained machines. """ @@ -198,7 +198,7 @@ def RecursiveLoad(survexblock, survexfile, fin): refscan = "%s#%s%s" % (yr, letterx, wallet ) manyscansfolders = models_survex.ScansFolder.objects.filter(walletname=refscan) if manyscansfolders: - survexblock.survexscansfolder = manyscansfolders[0] + survexblock.scansfolder = manyscansfolders[0] survexblock.save() else: message = ' ! Wallet ; ref {} - NOT found in manyscansfolders {}'.format(refscan, survexblock.survexfile.path) @@ -264,7 +264,7 @@ def RecursiveLoad(survexblock, survexfile, fin): refscan = "%s#%s%s" % (yr, letterx, wallet) manyscansfolders = models_survex.ScansFolder.objects.filter(walletname=refscan) if manyscansfolders: - survexblock.survexscansfolder = manyscansfolders[0] + survexblock.scansfolder = manyscansfolders[0] survexblock.save() else: message = ' ! Wallet *REF {} - NOT found in manyscansfolders {}'.format(refscan, survexblock.survexfile.path) |