JoeGermuska / birdnest

A little project around our JQBX group
birdnest.vercel.app
MIT License
1 stars 0 forks source link

Preserve sequence of playlists #5

Open JoeGermuska opened 3 years ago

JoeGermuska commented 3 years ago

Playlist tracks are returned in database ID order, which means tracks played for a second time appear at the beginning of their second playlist, not in the position where they were played.

Reference SQL Alchemy orderinglist docs to add something to maintain sequence.

JoeGermuska commented 3 years ago

It looks like maybe orderinglist only works for one-to-many relationships.

See also AssociationObject and/or Association Proxy extension

This will probably involve dumping and rebuilding the data.

JoeGermuska commented 3 years ago

Seems like it might come down to a relationship class

Stack Overflow