From b17a3be3fb2e4b559ebb3e1599b0dcbf5a1bdd61 Mon Sep 17 00:00:00 2001 From: Guoyun Tian <88619302+BlitherBoom812@users.noreply.github.com> Date: Wed, 8 May 2024 03:32:14 +0800 Subject: [PATCH] Update run.sh: fix /finish payload --- dependency/shell/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dependency/shell/run.sh b/dependency/shell/run.sh index 30f3608e..5f004acb 100644 --- a/dependency/shell/run.sh +++ b/dependency/shell/run.sh @@ -118,10 +118,10 @@ if [ "$TERMINAL" = "SERVER" ]; then read_array get_current_team_label $TEAM_LABELS if [[ "${current_team_label}" == "Student" ]]; then echo "Parse Success: 1st team is Student" - finish_payload='{"result": {"status": "Finished", "scores": ['${score0}', '${score1}']}}' + finish_payload='{"status": "Finished", "scores": ['${score0}', '${score1}']}' elif [[ "${current_team_label}" == "Tricker" ]]; then echo "Parse Success: 1st team is Tricker" - finish_payload='{"result": {"status": "Finished", "scores": ['${score1}', '${score0}']}}' + finish_payload='{"status": "Finished", "scores": ['${score1}', '${score0}']}' else echo "Parse Failure: 1st team is Unknown" finish_payload='{"result": {"status": "Crashed", "scores": [0, 0]}}'