Browse Source

add result.json

tags/0.1.0
BlitherBoom812 2 years ago
parent
commit
0ce7e3716d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      dependency/shell/run.sh

+ 5
- 0
dependency/shell/run.sh View File

@@ -56,3 +56,8 @@ else
mv -f temp.lock $playback_dir/video.thuaipb
kill -9 $server_pid
fi

result=$(cat /usr/local/playback/result.json)
score0=$(parse_json $result "Student")
score1=$(parse_json $result "Tricker")
curl $URL -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" -d '{"result":[{"team_id":0, "score":'${score0}'}, {"team_id":1, "score":'${score1}'}], "mode":'${MODE}'}'

Loading…
Cancel
Save