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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user