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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue