diff options
-rw-r--r-- | dashboard/src/dashboard/tasks.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dashboard/src/dashboard/tasks.py b/dashboard/src/dashboard/tasks.py index c5ef505..aab3345 100644 --- a/dashboard/src/dashboard/tasks.py +++ b/dashboard/src/dashboard/tasks.py @@ -14,11 +14,9 @@ from celery import shared_task from django.utils import timezone from jenkins.models import JenkinsStatistic -from notification.models import BookingNotification @shared_task def database_cleanup(): now = timezone.now() JenkinsStatistic.objects.filter(timestamp__lt=now - timedelta(weeks=4)).delete() - BookingNotification.objects.filter(submit_time__lt=now - timedelta(weeks=4)).delete()
\ No newline at end of file |