ci.py: fixed daca2folder() when results is empty

This commit is contained in:
Daniel Marjamäki 2014-02-23 10:26:01 +01:00
parent 1d801ce7b1
commit 43d48574c5
1 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,8 @@ def daca2folder():
f.close()
pos = filedata.find('STARTDATE')
if pos < 0:
return old
pos = old.find('/daca2/')
return old[pos+7:old.find('/',pos+8)]
startdate = filedata[pos+10:pos+20]
if not oldestdate or oldestdate > startdate:
oldestdate = startdate