Skip to content

Commit

Permalink
fix: rerun works even where there are no clears
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Jan 26, 2025
1 parent c0f8d7f commit 3ebdf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rerun.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function getGameFrames(gameid) {
UPDATE scores
SET
start_level=${game.frames[2].raw.level},
tetris_rate=${lastClear.tetris_rate},
tetris_rate=${lastClear?.tetris_rate ?? null},
num_droughts=${lastPiece.i_droughts.count},
max_drought=${lastPiece.i_droughts.max},
das_avg=${lastPiece.das.avg},
Expand Down

0 comments on commit 3ebdf94

Please sign in to comment.