mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-11-20 16:47:53 +00:00
<type>(scope): <description>
[body] [footer(s)]
This commit is contained in:
1 parent
1a23cefa1a
commit
87b1887552
2 files changed
+5
-3
No files matched your search
@@ -41,11 +41,11 @@ def analyze_data_task(self, submission_id):
|
||||
submission.stdout.save("output.txt", ContentFile(result["output"]))
|
||||
submission.result = {
|
||||
"correct": result["hash_match"],
|
||||
"result_hash": result["result_hash"],
|
||||
"hash_match": result["hash_match"],
|
||||
"error": result.get("error"),
|
||||
}
|
||||
submission.earned_points = (
|
||||
submission.task.points if result["hash_match"] else 0
|
||||
submission.task.points if result["correct"] else 0
|
||||
)
|
||||
submission.status = CompetitionTaskSubmission.StatusChoices.CHECKED
|
||||
|
||||
|
||||
Reference in new issue
Block a user