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,
|
||||
AssignmentCompletionAuditLog,
|
||||
AssignmentCompletionStatus,
|
||||
AssignmentType,
|
||||
is_valid_assignment_completion_status,
|
||||
)
|
||||
from vbv_lernwelt.core.models import User
|
||||
|
|
@ -208,10 +209,14 @@ def update_assignment_completion(
|
|||
|
||||
ac.save()
|
||||
|
||||
if completion_status in [
|
||||
if (
|
||||
completion_status
|
||||
in [
|
||||
AssignmentCompletionStatus.EVALUATION_SUBMITTED,
|
||||
AssignmentCompletionStatus.SUBMITTED,
|
||||
]:
|
||||
]
|
||||
and Assignment.assignment_type != AssignmentType.EDONIQ_TEST.value
|
||||
):
|
||||
acl = AssignmentCompletionAuditLog.objects.create(
|
||||
assignment_user=assignment_user,
|
||||
assignment=assignment,
|
||||
|
|
|
|||
Loading…
Reference in New Issue