From d38a767d7ca1b205be82b8cb674746f638f5fb52 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 1 May 2011 19:20:25 +0100 Subject: [PATCH] Allow survey scans to be scrapped with a file in the top level directory of the year --- parsers/surveys.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/parsers/surveys.py b/parsers/surveys.py index 8c06c9a..4ac5067 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -207,10 +207,11 @@ def LoadListScans(): # do the year folders if re.match("\d\d\d\d$", f): for fy, ffy, fisdiry in GetListDir(ff): - assert fisdiry, ffy - survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy) - survexscansfolder.save() - LoadListScansFile(survexscansfolder) + if fisdiry: + assert fisdiry, ffy + survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy) + survexscansfolder.save() + LoadListScansFile(survexscansfolder) # do the elif f != "thumbs":