proof of concept
This commit is contained in:
parent
88e7ef2bca
commit
ca9d0c75f8
@ -287,16 +287,18 @@ class Playlist(QTableWidget):
|
|||||||
self.id = plid
|
self.id = plid
|
||||||
Playlists.open(plid)
|
Playlists.open(plid)
|
||||||
p = Playlists.get_playlist_by_id(plid)
|
p = Playlists.get_playlist_by_id(plid)
|
||||||
|
self.db = p
|
||||||
|
self.populate_playlist()
|
||||||
|
|
||||||
# We need to retrieve playlist tracks and playlist notes, then
|
def populate_playlist(self):
|
||||||
# add them in row order. We don't mandate that an item will be
|
# add them in row order. We don't mandate that an item will be
|
||||||
# on its specified row, only that it will be above
|
# on its specified row, only that it will be above
|
||||||
# larger-numbered row items, and below lower-numbered ones.
|
# larger-numbered row items, and below lower-numbered ones.
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
for t in p.tracks:
|
for t in self.db.tracks:
|
||||||
data.append(([t.row], t.tracks))
|
data.append(([t.row], t.tracks))
|
||||||
for n in p.notes:
|
for n in self.db.notes:
|
||||||
data.append(([n.row], n))
|
data.append(([n.row], n))
|
||||||
|
|
||||||
# Clear playlist
|
# Clear playlist
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user