Content deleted Content added
should fix latest error |
per request, adding optional |pct_style=notratio per request |
||
Line 274:
local hth_local = yesno(Args['show_hth'] or 'yes') and Args['hth_'..team_code_ii] or nil
local ranking_style = string.lower(Args['ranking_style'] or 'pts')
local pct_style = string.lower(Args['pct_style'] or 'ratio')
-- Then calculate some values
Line 297 ⟶ 298:
else
--Some sports use draw as well
win_perc = (pct_style == 'ratio') and
mm._precision_format((2*wins + draws) / (2*matches), 3) or mm._precision_format(100*(2*wins + draws) / (2*matches), 1)
ppg = mm._precision_format(points / matches, 2)
if losses > 0 or draws > 0 then
|