Have puzzles.cgi handle categories with dashes

This commit is contained in:
Neale Pickett 2015-04-21 09:02:25 -06:00
parent c780e163a7
commit a773d1f1f9
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ f:close()
for line in io.lines(koth.path("state/points.log")) do 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 points = tonumber(points) or 0
-- Skip scores for removed categories -- Skip scores for removed categories