From b696853ec5303a235b52cbe47e7b0a93a9d4a34b Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 21 Sep 2016 16:10:29 -0600 Subject: [PATCH] puzzles.html functional again --- bin/once | 10 +++++----- bin/puzzles | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/once b/bin/once index 496aa6f..7645174 100755 --- a/bin/once +++ b/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 diff --git a/bin/puzzles b/bin/puzzles index a390126..0259174 100755 --- a/bin/puzzles +++ b/bin/puzzles @@ -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