Added save task to traveller routes to update traveller active status and bulk task designed for morning automated task. Can be run manually from settings page

This commit is contained in:
John Mullins
2023-12-21 17:50:35 +11:00
parent 514171c68b
commit f73b08e989
5 changed files with 31 additions and 23 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from django.contrib.admin.views.decorators import staff_member_required
from django.shortcuts import render, redirect
from coord.scheduled_tasks import copy_travel_dates
from coord.scheduled_tasks import nightly_check_active_status
from coord.utils.rollover import RolloverForm, execute_rollover
@@ -23,5 +23,5 @@ def rollover(request):
@staff_member_required
def nightly_task(request):
copy_travel_dates()
nightly_check_active_status()
return redirect('settings:index')