puzzles.html functional again

This commit is contained in:
Neale Pickett 2016-09-21 16:10:29 -06:00
parent 71ae4baf18
commit 26e6c86835
2 changed files with 6 additions and 6 deletions

View File

@ -42,12 +42,12 @@ find state/points.new -type f | while read fn; do
rm -f $fn
done
# Generate new puzzles.html
if bin/puzzles $basedir > www/puzzles.new; then
mv www/puzzles.new www/puzzles.json
# Generate new puzzles.json
if bin/puzzles $basedir > state/puzzles.json.new; then
mv state/puzzles.json.new state/puzzles.json
fi
# Generate new points.json
if bin/points $basedir > www/points.new; then
mv www/points.new www/points.json
if bin/points $basedir > state/points.json.new; then
mv state/points.json.new state/points.json
fi

View File

@ -46,7 +46,7 @@ for cat, biggest in pairs(max_by_cat) do
end
if (points == biggest) then
io.write(',\n')
io.write(' [0, ""] // Category complete')
io.write(' [0, ""]')
end
io.write('\n ]')
end