diff options
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r-- | src/dashboard/tasks.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py index ac4b006..281db92 100644 --- a/src/dashboard/tasks.py +++ b/src/dashboard/tasks.py @@ -17,9 +17,7 @@ from api.views import liblaas_end_booking # todo - make a task to check for expired bookings @shared_task def end_expired_bookings(): - print("Celery task for end_expired_bookings() has been triggered") cleanup_set = Booking.objects.filter(end__lte=timezone.now(), ).filter(complete=False) - print("Newly expired bookings: ", cleanup_set) for booking in cleanup_set: booking.complete = True if (booking.aggregateId): @@ -28,4 +26,3 @@ def end_expired_bookings(): else: print("booking " + str(booking.id) + " has no agg id") booking.save() - print("Finished end_expired_bookings()") |