From dd95c48f0df4b47f344ee1f8055ddfa0f29cbd3e Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sun, 30 Nov 2025 11:12:32 +0100 Subject: [PATCH] Fix results display for PAIRGO and RENGO tournaments For PAIRGO/RENGO, games are team games (w/b are team IDs), not individual player games. Use pmap (teams map) instead of plmap (players map) to look up participants. --- view-webapp/src/main/webapp/tour-results.inc.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/view-webapp/src/main/webapp/tour-results.inc.html b/view-webapp/src/main/webapp/tour-results.inc.html index 38e529f..2950142 100644 --- a/view-webapp/src/main/webapp/tour-results.inc.html +++ b/view-webapp/src/main/webapp/tour-results.inc.html @@ -31,9 +31,14 @@ #set($dispRst = {'?':'?', 'w':'1-0', 'b':'0-1', '=':'½-½', 'X':'X', '#':'1-1', '0':'0-0'}) #set($dispRstInv = {'?':'?', 'w':'0-1', 'b':'1-0', '=':'½-½', 'X':'X', '#':'1-1', '0':'0-0'}) +## For PAIRGO/RENGO, games are team games - use pmap (teams). For others, use plmap (players). +#set($resultsMap = $plmap) +#if($tour.type == 'PAIRGO' || $tour.type.startsWith('RENGO')) + #set($resultsMap = $pmap) +#end #foreach($game in $individualGames) - #set($white = $plmap[$game.w]) - #set($black = $plmap[$game.b]) + #set($white = $resultsMap[$game.w]) + #set($black = $resultsMap[$game.b]) #if($black && $white) ${game.t}.