Skip to content

Commit

Permalink
Merge pull request #590 from jprochazka/maintenance
Browse files Browse the repository at this point in the history
Forgot to reenable purge jobs after a test.
  • Loading branch information
jprochazka authored Jul 15, 2024
2 parents 5a365c7 + 3e9e73b commit 7c91ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/portal/python/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import MySQLdb
import os
import sqlite3
import time

from datetime import datetime, timedelta

Expand Down Expand Up @@ -53,6 +52,8 @@ def begin_maintenance(self):
logging.error(f"Error encountered while getting value for setting days_to_save", exc_info=ex)
return
cutoff_date = datetime.now() - timedelta(days = days_to_save)
self.purge_aircraft(cutoff_date)
self.purge_positions(cutoff_date)

else:
self.log("Maintenance is disabled")
Expand Down

0 comments on commit 7c91ec6

Please sign in to comment.