ci.py: fixed daca2folder() when results is empty
This commit is contained in:
parent
1d801ce7b1
commit
43d48574c5
|
@ -141,7 +141,8 @@ def daca2folder():
|
||||||
f.close()
|
f.close()
|
||||||
pos = filedata.find('STARTDATE')
|
pos = filedata.find('STARTDATE')
|
||||||
if pos < 0:
|
if pos < 0:
|
||||||
return old
|
pos = old.find('/daca2/')
|
||||||
|
return old[pos+7:old.find('/',pos+8)]
|
||||||
startdate = filedata[pos+10:pos+20]
|
startdate = filedata[pos+10:pos+20]
|
||||||
if not oldestdate or oldestdate > startdate:
|
if not oldestdate or oldestdate > startdate:
|
||||||
oldestdate = startdate
|
oldestdate = startdate
|
||||||
|
|
Loading…
Reference in New Issue