2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 11:27:38 +00:00

reanme manyscansfolders to manywallets

This commit is contained in:
Philip Sargent
2021-04-26 19:22:29 +01:00
parent 7dd5840353
commit 7f64670f36
6 changed files with 23 additions and 23 deletions

View File

@@ -89,11 +89,11 @@ def LoadListScans():
print(' - deleting all scansFolder and scansSingle objects')
# first do the smkhs (large kh survey scans) directory
manyscansfoldersmkhs = Wallet(fpath=os.path.join(settings.SURVEY_SCANS, "../surveys/smkhs"), walletname="smkhs")
manywallets_smkhs = Wallet(fpath=os.path.join(settings.SURVEY_SCANS, "../surveys/smkhs"), walletname="smkhs")
print("smkhs", end=' ')
if os.path.isdir(manyscansfoldersmkhs.fpath):
manyscansfoldersmkhs.save()
LoadListScansFile(manyscansfoldersmkhs)
if os.path.isdir(manywallets_smkhs.fpath):
manywallets_smkhs.save()
LoadListScansFile(manywallets_smkhs)
# iterate into the surveyscans directory
@@ -144,7 +144,7 @@ def find_tunnel_scan(dwgfile, path):
scansfile = scansfilel[0]
if scansfolder:
dwgfile.manyscansfolders.add(scansfolder)
dwgfile.manywallets.add(scansfolder)
if scansfile:
dwgfile.scans.add(scansfile)