Add notes to _removeOutdatedServices()
This commit is contained in:
parent
3d111e2563
commit
71dbf5df52
@ -92,7 +92,7 @@ def runUpdate():
|
|||||||
status = _insertToDb(parsed, required)
|
status = _insertToDb(parsed, required)
|
||||||
if (status):
|
if (status):
|
||||||
mongo.metaUpdateTime("timetable")
|
mongo.metaUpdateTime("timetable")
|
||||||
|
log.out("timetable.runUpdate: Removing all out of date schedules", "INFO")
|
||||||
## Check what happens if there is no update
|
## Check what happens if there is no update
|
||||||
|
|
||||||
def insertSchedule(sch_record):
|
def insertSchedule(sch_record):
|
||||||
@ -177,5 +177,6 @@ def _helpParseDate(string, time):
|
|||||||
return datetime.strptime(string, "%Y-%m-%d %H%M%S")
|
return datetime.strptime(string, "%Y-%m-%d %H%M%S")
|
||||||
|
|
||||||
def _removeOutdatedServices():
|
def _removeOutdatedServices():
|
||||||
#Remove services with an end date before today.
|
log.out("timetable._removeOutdatedServices: NOT IMPLEMENTED", "WARN")
|
||||||
|
# Call 'delete' on all services with an end-date $lte today.
|
||||||
return
|
return
|
Reference in New Issue
Block a user