This commit is contained in:
rngsurrounded
2025-03-04 10:02:20 +09:00
+5 -5
View File
@@ -44,11 +44,11 @@ def analyze_data_task(self, submission_id):
result = response.json() result = response.json()
print(result) print(result)
submission.stdout = ContentFile( # submission.stdout = ContentFile(
bytes(result["output"]), # bytes(result["output"]),
"output.txt", # "output.txt",
) # )
submission.stdout.save() # submission.stdout.save()
submission.result = { submission.result = {
"correct": result["hash_match"], "correct": result["hash_match"],
"hash_match": result["hash_match"], "hash_match": result["hash_match"],