Commit 3ae28b6c authored by Mario Chirinos's avatar Mario Chirinos

last date finder

parent c8ff1f67
......@@ -39,11 +39,11 @@ def crawlNews(directory, cfg, endDate=datetime.datetime.now()):
'''
startDate = findLastDate(directory)
print("start: ", startDate, "end: ", endDate)
# endDate = datetime.datetime.now()
if startDate is None:
startDate=datetime.datetime.strptime(cfg["startDate"], '%Y-%m-%d')
print("start: ", startDate, "end: ", endDate)
delta = endDate-startDate
return 0
for i in range(delta.days + 1):
......
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