|
|
@@ -56,3 +56,8 @@ else |
|
|
mv -f temp.lock $playback_dir/video.thuaipb |
|
|
mv -f temp.lock $playback_dir/video.thuaipb |
|
|
kill -9 $server_pid |
|
|
kill -9 $server_pid |
|
|
fi |
|
|
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}'}' |