Don't create AssignmentCompletionAuditLog for edoniq tests
This commit is contained in:
parent
548d3c3c75
commit
6018572d89
Binary file not shown.
|
|
@ -9,6 +9,7 @@ from vbv_lernwelt.assignment.models import (
|
||||||
AssignmentCompletion,
|
AssignmentCompletion,
|
||||||
AssignmentCompletionAuditLog,
|
AssignmentCompletionAuditLog,
|
||||||
AssignmentCompletionStatus,
|
AssignmentCompletionStatus,
|
||||||
|
AssignmentType,
|
||||||
is_valid_assignment_completion_status,
|
is_valid_assignment_completion_status,
|
||||||
)
|
)
|
||||||
from vbv_lernwelt.core.models import User
|
from vbv_lernwelt.core.models import User
|
||||||
|
|
@ -208,10 +209,14 @@ def update_assignment_completion(
|
||||||
|
|
||||||
ac.save()
|
ac.save()
|
||||||
|
|
||||||
if completion_status in [
|
if (
|
||||||
AssignmentCompletionStatus.EVALUATION_SUBMITTED,
|
completion_status
|
||||||
AssignmentCompletionStatus.SUBMITTED,
|
in [
|
||||||
]:
|
AssignmentCompletionStatus.EVALUATION_SUBMITTED,
|
||||||
|
AssignmentCompletionStatus.SUBMITTED,
|
||||||
|
]
|
||||||
|
and Assignment.assignment_type != AssignmentType.EDONIQ_TEST.value
|
||||||
|
):
|
||||||
acl = AssignmentCompletionAuditLog.objects.create(
|
acl = AssignmentCompletionAuditLog.objects.create(
|
||||||
assignment_user=assignment_user,
|
assignment_user=assignment_user,
|
||||||
assignment=assignment,
|
assignment=assignment,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue