From a83722f63578cb8414d2374f4666af64134dcf51 Mon Sep 17 00:00:00 2001 From: tobiichi3227 Date: Fri, 29 Mar 2024 20:36:15 +0800 Subject: [PATCH] fix: runtime error message not show When the error does not occur in the last tests, the error message will be overwriteen --- src/services/chal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/chal.py b/src/services/chal.py index fb1bbfc1..7629dd43 100644 --- a/src/services/chal.py +++ b/src/services/chal.py @@ -184,7 +184,9 @@ async def get_chal(self, chal_id, acct: Account): testl = [] for test_idx, state, runtime, memory, response in result: - final_response = response + if final_response == "": + final_response = response + testl.append( { 'test_idx': test_idx,