mdb: don't list carnival bonus sparks to exclude them

This commit is contained in:
2026-06-02 13:38:50 -04:00
parent e6335c1d6e
commit 2a4da0a73e
2 changed files with 8 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ func Sparks(ctx context.Context, db *sqlitex.Pool) ([]horse.Spark, error) {
var sp []horse.Spark
{
stmt := conn.Prep(sparkSQL)
defer stmt.Reset()
for {
ok, err := stmt.Step()
if err != nil {
@@ -49,6 +50,7 @@ func Sparks(ctx context.Context, db *sqlitex.Pool) ([]horse.Spark, error) {
}
}
stmt := conn.Prep(sparkEffectSQL)
defer stmt.Reset()
cur := sp
last := 0
for {