mirror of https://github.com/dirtbags/moth.git
puzzles.html functional again
This commit is contained in:
parent
71ae4baf18
commit
26e6c86835
10
bin/once
10
bin/once
|
@ -42,12 +42,12 @@ find state/points.new -type f | while read fn; do
|
||||||
rm -f $fn
|
rm -f $fn
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate new puzzles.html
|
# Generate new puzzles.json
|
||||||
if bin/puzzles $basedir > www/puzzles.new; then
|
if bin/puzzles $basedir > state/puzzles.json.new; then
|
||||||
mv www/puzzles.new www/puzzles.json
|
mv state/puzzles.json.new state/puzzles.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate new points.json
|
# Generate new points.json
|
||||||
if bin/points $basedir > www/points.new; then
|
if bin/points $basedir > state/points.json.new; then
|
||||||
mv www/points.new www/points.json
|
mv state/points.json.new state/points.json
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -46,7 +46,7 @@ for cat, biggest in pairs(max_by_cat) do
|
||||||
end
|
end
|
||||||
if (points == biggest) then
|
if (points == biggest) then
|
||||||
io.write(',\n')
|
io.write(',\n')
|
||||||
io.write(' [0, ""] // Category complete')
|
io.write(' [0, ""]')
|
||||||
end
|
end
|
||||||
io.write('\n ]')
|
io.write('\n ]')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue