Commit 087e3b4a authored by mickael's avatar mickael

bug fix for multiple dates

parent 209f8dad
......@@ -1606,22 +1606,25 @@ if __name__ == "__main__":
listMonthToprocess=[]
if args.monthToprocess='ALL':
endDate = datetime.datetime.now()
month = endDate.month
year = endDate.year
while year >2014:
listMonthToprocess.append(str(year)+str(month).zfill(2))
month-=1
if month<1:
month=12
year-=1
else:
listMonthToprocess.append(args.monthToProcess)
if args.function == 'overview':
createHTMLOverview(picklerPath, args.satellite)
else:
currentMonth = args.monthToProcess
if currentMonth == 'ALL':
endDate = datetime.datetime.now()
month = endDate.month
year = endDate.year
while year >2014:
listMonthToprocess.append(str(year)+str(month).zfill(2))
month-=1
if month<1:
month=12
year-=1
else:
listMonthToprocess.append(args.monthToProcess)
print listMonthToprocess
for currentMonth in listMonthToprocess:
print picklerPath
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment