aboutsummaryrefslogtreecommitdiffstats
path: root/src/dashboard/tasks.py
diff options
context:
space:
mode:
authorJustin Choquette <jchoquette@iol.unh.edu>2023-08-08 11:33:57 -0400
committerJustin Choquette <jchoquette@iol.unh.edu>2023-08-18 11:59:01 -0400
commitecadb07367d31c0929212618e120130f54af78da (patch)
treef626ef347f6fa7cb7f9ee962539a5f769bc3d471 /src/dashboard/tasks.py
parenta6168306c08e8d5b207b9acc48869180d194ff01 (diff)
MVP
Change-Id: Ib590302f49e7e66f8d04841fb6cb97baf623f51a Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r--src/dashboard/tasks.py3
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()")