From a773d1f1f976f6f1f6f44e5c3da46211d9a7141c Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 21 Apr 2015 09:02:25 -0600 Subject: [PATCH] Have puzzles.cgi handle categories with dashes --- www/cgi/puzzles.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/cgi/puzzles.cgi b/www/cgi/puzzles.cgi index aa6475e..1fecbd0 100755 --- a/www/cgi/puzzles.cgi +++ b/www/cgi/puzzles.cgi @@ -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