Skip to content

Commit

Permalink
Fixing forgotten details in submission failures reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
krulis-martin committed Dec 31, 2023
1 parent b7ac1f9 commit 63ea00b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions app/model/entity/ReferenceSolutionSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public function jsonSerialize(): mixed
return [
"id" => $this->getId(),
"referenceSolutionId" => $this->referenceSolution->getId(),
"evaluationStatus" => ES\EvaluationStatus::getStatus($this),
"isCorrect" => $this->isCorrect(),
"evaluation" => $evaluationData,
"submittedAt" => $this->submittedAt->getTimestamp(),
"submittedBy" => $this->submittedBy ? $this->submittedBy->getId() : null,
Expand Down
1 change: 1 addition & 0 deletions app/model/entity/SubmissionFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function getAssignmentSolutionSubmission(): ?AssignmentSolutionSubmission
public function toSimpleArray()
{
return [
"type" => $this->type,
"description" => $this->description,
"createdAt" => $this->createdAt->getTimestamp(),
"resolvedAt" => $this->resolvedAt ? $this->resolvedAt->getTimestamp() : null,
Expand Down

0 comments on commit 63ea00b

Please sign in to comment.