aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2018-02-19 20:54:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-19 20:54:11 +0000
commit21a025644865678c7ce9ef60a5cbec07e86f737c (patch)
tree3ece77bcef1162dad46b525ac725b82682866d6d
parent49447782cdb7de5ac085f60a738969bdc37831c2 (diff)
parent03097ee368e48395c47a33742fa72f5b920d3e65 (diff)
Merge "Remove the Booking Notification Cleanup Task"
-rw-r--r--src/dashboard/tasks.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py
index c5ef505..aab3345 100644
--- a/src/dashboard/tasks.py
+++ b/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