Fusion de main (analyse du match, 1l) ; l'abandon passe en version 4 des événements
La version 3 est celle de main (identifiant de match) ; l'abandon prend la version 4, avec la migration des versions 1, 2 et 3 testée. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -149,10 +149,15 @@ elif .type == "resign" then
|
||||
and all(.resignations[]; (.accepted | type) == "boolean"
|
||||
and (if .accepted then (.points | nombre) else .points == null end))
|
||||
then empty else "abandon incomplet" end)
|
||||
elif .type == "chance" then
|
||||
(if (.match_id | test("^[A-Za-z0-9+/]{12}$")) and (.at_score | nombre)
|
||||
and .at_score >= 0 and .at_score <= 1 and (.equities | length) > 0
|
||||
and all(.equities[]; (.equity | nombre) and (.mwc | nombre) and (.loss | nombre))
|
||||
then empty else "chances de gagner le match incomplètes" end)
|
||||
else "type inconnu" end
|
||||
JQ
|
||||
|
||||
mapfile -t analyses < <(jq -r '(.moves + .cubes + .levels + .resigns)[].id' analyses.json)
|
||||
mapfile -t analyses < <(jq -r '(.moves + .cubes + .levels + .chances + .resigns)[].id' analyses.json)
|
||||
doublons="$(printf '%s\n' "${analyses[@]}" "${ids[@]}" | sort | uniq -d | paste -sd' ' -)"
|
||||
[ -z "$doublons" ] || signaler "analyses.json : identifiants en double : $doublons"
|
||||
for id in "${analyses[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user