Add notes to _removeOutdatedServices()

This commit is contained in:
Fred Boniface 2023-05-31 20:37:53 +01:00
parent 3d111e2563
commit 71dbf5df52
1 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ def runUpdate():
status = _insertToDb(parsed, required)
if (status):
mongo.metaUpdateTime("timetable")
log.out("timetable.runUpdate: Removing all out of date schedules", "INFO")
## Check what happens if there is no update
def insertSchedule(sch_record):
@ -177,5 +177,6 @@ def _helpParseDate(string, time):
return datetime.strptime(string, "%Y-%m-%d %H%M%S")
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