From fffb083aeeaa76d97266d3702568b20bafa222d1 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 31 May 2020 16:34:46 +0100 Subject: [PATCH] fix SURVEY_SCANS to include target folder fully --- parsers/surveys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers/surveys.py b/parsers/surveys.py index 942c0a5..efa8232 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -221,7 +221,7 @@ def LoadListScans(): SurvexScansFolder.objects.all().delete() # first do the smkhs (large kh survey scans) directory - survexscansfoldersmkhs = SurvexScansFolder(fpath=os.path.join(settings.SURVEY_SCANS, "smkhs"), walletname="smkhs") + survexscansfoldersmkhs = SurvexScansFolder(fpath=os.path.join(settings.SURVEY_SCANS, "../surveys/smkhs"), walletname="smkhs") if os.path.isdir(survexscansfoldersmkhs.fpath): survexscansfoldersmkhs.save() LoadListScansFile(survexscansfoldersmkhs) @@ -229,7 +229,7 @@ def LoadListScans(): # iterate into the surveyscans directory print(' - ', end=' ') - for f, ff, fisdir in GetListDir(os.path.join(settings.SURVEY_SCANS, "surveyscans")): + for f, ff, fisdir in GetListDir(settings.SURVEY_SCANS): if not fisdir: continue