Fix scoreX for swiss

This commit is contained in:
Claude Brisson
2024-12-02 14:55:07 +01:00
parent 101d3e9cc2
commit 3a974e636a

View File

@@ -64,7 +64,7 @@
#foreach($crit in $tour.pairing.placement)
#set($junk = $criteres.add($crit))
#end
#if($criteres[0] == 'SCOREX')
#if($criteres[0] == 'SCOREX' && $tour.pairing.type == 'MAC_MAHON')
#set($junk = $criteres.add(1, 'MMS'))
#end
#foreach($crit in $criteres)
@@ -96,7 +96,10 @@
#end
<td class="nobreak game-result" #if($opponent)title="$esc.html($opponent.name)#if($opponent.firstname) $esc.html($opponent.firstname)#end #rank($opponent.rank)#if($opponent.country) $opponent.country#end"#end>$rst</td>
#end
$log.info("@@@@@ part = $part")
$log.info("@@@@@ crit = $criteres")
#foreach($crit in $criteres)
$log.info("@@@@@ $crit found ? $part.containsKey($crit)")
#set($value = "$number.format('0.#', $part[$crit])")
<td data-sort="$value">$value.replace('.5', '½')</td>
#end