diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2018-02-19 20:54:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-02-19 20:54:11 +0000 |
commit | b9ac97df7bedf857a38dd696b05ec618b217d4ff (patch) | |
tree | 1b644eed6c335be5f2d79cfecc05da5afc456170 /dashboard | |
parent | dd73cdc7ea46a1024397c32c7472d007c7b7e8bd (diff) | |
parent | 766a55db2b7b23f671a88123363490f8ebaa41ae (diff) |
Merge "Remove the Booking Notification Cleanup Task"
Diffstat (limited to 'dashboard')
-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 |