mirror of https://github.com/dirtbags/moth.git
Add category to URL in puzzles.cgi
This commit is contained in:
parent
abe16d9d51
commit
c82870e8d9
|
@ -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