mirror of https://github.com/dirtbags/moth.git
Have puzzles.cgi handle categories with dashes
This commit is contained in:
parent
6b20fc3c1a
commit
4e7b4b8c36
|
@ -14,7 +14,7 @@ f:close()
|
|||
|
||||
|
||||
for line in io.lines(koth.path("state/points.log")) do
|
||||
local ts, team, cat, points, comment = line:match("^(%d+) (%w+) (%w+) (%d+) ?(.*)")
|
||||
local ts, team, cat, points, comment = line:match("^(%d+) (%w+) ([%w-]+) (%d+) ?(.*)")
|
||||
points = tonumber(points) or 0
|
||||
|
||||
-- Skip scores for removed categories
|
||||
|
|
Loading…
Reference in New Issue