#macro(placement $i, $p)
#end
Standings after round
$round
#foreach($placement in $tour.pairing.placement)
#set($num = $foreach.index + 1) Crit #$num #placement($num $placement)
#end
#set($standings = $api.get("tour/${params.id}/standings/$round")) #if($standings.isObject() && ($standings.error || $standings.message)) #if($standings.error) #set($error = $standings.error) #else #set($error = $standings.message) #end
#set($standings = []) #end #set($smap = {}) #foreach($part in $standings) #set($smap[$part.num] = $part) #end

Num | Plc | Name | Rank | Ctr | Nbw #foreach($r in [1..$round]) | R$r #end #set($criteres = []) #foreach($crit in $tour.pairing.placement) #set($junk = $criteres.add($crit)) #end #if($criteres[0] == 'SCOREX' && $tour.pairing.type == 'MAC_MAHON') #set($junk = $criteres.add(1, 'MMS')) #end #foreach($crit in $criteres) | $crit #end
#foreach($part in $standings)
$part.num | $part.place | $esc.html($part.name)#if($part.firstname) $esc.html($part.firstname)#end | #rank($part.rank) | #if($part.country)$part.country#end | $number.format('0.#', $part.NBW) #set($mx = $round - 1) #foreach($r in [0..$mx]) #set($rst = $part.results[$r]) #set($opp_num = $math.toLong($rst)) #if($opp_num) #set($opponent = $!smap[$opp_num]) #else #set($opponent = false) #end #if($rst.contains('+')) #set($rst = "$rst") #elseif($rst.contains('-')) #set($rst = "$rst") #end | $rst #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])") | $value.replace('.5', '½') #end
#end

#if(!$tour.frozen && $round == $tour.rounds)
#end
Publish standings
#if($round < $tour.rounds)
Warning: publishing partial results at round $round / $tour.rounds!
#end
Choose format