ignore leaderboard group's displayName field which bug 5311 adds to the top-level node of a leaderboard group document

This commit is contained in:
Axel Uhl
2021-07-19 13:00:59 +02:00
parent 4f61f4c925
commit 0e3c8ad244
+1 -1
View File
@@ -40,7 +40,7 @@ if [ "$continue" != "1" ]; then
fi
download_and_fix_boatclasses () {
wget --no-cache $WGET_QUIET -O - "$1/sailingserver/api/v1/leaderboardgroups/`echo $OLD_LB | sed -e 's/ /%20/g'`" | jq 'del(.leaderboards[].series[].fleets[].races[].raceViewerUrls) | del(.leaderboards[].series[].fleets[].races[].trackingProviderType) | del(.leaderboards[].series[].fleets[].races[].raceId) | del(.events)' | grep -v "\"id\": \"[^\"]*\"" | grep -v "\"timepoint\": \"[^\"]*\"" >"$2" 2>$WGET_ERR
wget --no-cache $WGET_QUIET -O - "$1/sailingserver/api/v1/leaderboardgroups/`echo $OLD_LB | sed -e 's/ /%20/g'`" | jq 'del(.displayName)' | grep -v "\"id\": \"[^\"]*\"" | grep -v "\"timepoint\": \"[^\"]*\"" >"$2" 2>$WGET_ERR
#wget --no-cache $WGET_QUIET -O - "$1/sailingserver/api/v1/leaderboardgroups/`echo $OLD_LB | sed -e 's/ /%20/g'`" | python -m json.tool | grep -v "\"id\": \"[^\"]*\"" | grep -v "\"timepoint\": \"[^\"]*\"" >"$2" 2>$WGET_ERR
}