Allow survey scans to be scrapped with a file in the top level directory of the year

This commit is contained in:
Martin Green 2011-05-01 19:20:25 +01:00
parent 4b2d18be69
commit d38a767d7c

View File

@ -207,6 +207,7 @@ def LoadListScans():
# do the year folders # do the year folders
if re.match("\d\d\d\d$", f): if re.match("\d\d\d\d$", f):
for fy, ffy, fisdiry in GetListDir(ff): for fy, ffy, fisdiry in GetListDir(ff):
if fisdiry:
assert fisdiry, ffy assert fisdiry, ffy
survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy) survexscansfolder = SurvexScansFolder(fpath=ffy, walletname=fy)
survexscansfolder.save() survexscansfolder.save()