bugfix: ignore count column in total score

This commit is contained in:
Kartik K. Agaram 2024-04-25 21:45:08 -07:00
parent abd6806e42
commit 0885d79aed
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
score = function(t, team)
local result = 0
for opp, score in pairs(t[team]) do
if type(score) == 'number' then
if opp ~= 'count' and type(score) == 'number' then
result = result + score
end
end