Slim dict for faster loading
This commit is contained in:
parent
a361e496db
commit
b5e2e8ab2a
2 changed files with 30 additions and 1 deletions
|
|
@ -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])
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue