mirror of https://github.com/dirtbags/moth.git
Add category to URL in puzzles.cgi
This commit is contained in:
parent
f73ab8d01d
commit
2b71173ca8
|
@ -136,7 +136,7 @@ main(int argc, char *argv[])
|
||||||
read_until_char(map, hash, sizeof(hash), '\n');
|
read_until_char(map, hash, sizeof(hash), '\n');
|
||||||
points = atol(points_str);
|
points = atol(points_str);
|
||||||
|
|
||||||
printf(" <a href=\"/%s/\">%ld</a>\n", hash, points);
|
printf(" <a href=\"/%s/%s/\">%ld</a>\n", cat, hash, points);
|
||||||
|
|
||||||
if (points > maxpoints) break;
|
if (points > maxpoints) break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue