remove bad example image, sort examples to back, fix started fix
This commit is contained in:
parent
11907c1452
commit
800ca0cc54
3 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,7 @@ function loadAllGames() {
|
|||
const contents = fs.readFileSync(file, 'utf-8')
|
||||
const game = JSON.parse(contents)
|
||||
if (typeof game.puzzle.data.started === 'undefined') {
|
||||
game.puzzle.data.started = Math.round(fs.statSync(file).atimeMs)
|
||||
game.puzzle.data.started = Math.round(fs.statSync(file).ctimeMs)
|
||||
}
|
||||
if (typeof game.puzzle.data.finished === 'undefined') {
|
||||
let unfinished = game.puzzle.tiles.map(Util.decodeTile).find(t => t.owner !== -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue