start integrating cimar
This commit is contained in:
+15
-1
@@ -84,6 +84,7 @@ from .models import (
|
||||
CidUser,
|
||||
CidUserExam,
|
||||
CidUserGroup,
|
||||
CimarCase,
|
||||
ExamBase,
|
||||
ExamCollection,
|
||||
ExamUserStatus,
|
||||
@@ -4084,4 +4085,17 @@ def exam_collection_add_marker(request, collection_id, exam_type):
|
||||
|
||||
collection.add_marker_to_exams(users, exam_types=(exam_type,))
|
||||
|
||||
return HttpResponse("Marker added to exams")
|
||||
return HttpResponse("Marker added to exams")
|
||||
|
||||
|
||||
def cimar_case_refresh(request, uuid):
|
||||
try:
|
||||
CimarCase.objects.get(uuid=uuid).refresh_study()
|
||||
except CimarCase.DoesNotExist:
|
||||
CimarCase(uuid=uuid).save()
|
||||
|
||||
|
||||
|
||||
return HttpResponse("Case refreshed")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user