Slim dict for faster loading

This commit is contained in:
Ian Keane 2026-06-11 14:51:50 -04:00
parent a361e496db
commit b5e2e8ab2a
2 changed files with 30 additions and 1 deletions

View file

@ -58,7 +58,7 @@ def list_tunes():
q = q.filter(TuneByInstrument.difficulty.ilike(difficulty))
tunes = q.order_by(Tune.name).all()
return jsonify([t.to_dict() for t in tunes])
return jsonify([t.to_slim_dict() for t in tunes])
# ---------------------------------------------------------------------------