.
This commit is contained in:
+3
-3
@@ -117,7 +117,7 @@ from .filters import (
|
||||
SubspecialtyFilter,
|
||||
)
|
||||
|
||||
from .tasks import long
|
||||
from .tasks import push_case_to_cimar_task
|
||||
|
||||
from django_tables2 import SingleTableView, SingleTableMixin
|
||||
from django_filters.views import FilterView
|
||||
@@ -2985,9 +2985,9 @@ def collection_reset_answers(request, exam_id: int):
|
||||
|
||||
def push_case_to_cimar(request, case_id):
|
||||
|
||||
long.delay()
|
||||
push_case_to_cimar_task.delay(case_id=case_id)
|
||||
|
||||
return HttpResponse("Success")
|
||||
return HttpResponse("Push started")
|
||||
case = get_object_or_404(Case, pk=case_id)
|
||||
|
||||
api = CimarAPI()
|
||||
|
||||
Reference in New Issue
Block a user