Compare commits
2 Commits
0507f495ad
...
c04114b07a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c04114b07a | ||
|
|
92852f7e27 |
@ -486,9 +486,9 @@ class PlaylistRows(Base):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_unplayed_rows(cls, session: Session,
|
def get_unplayed_rows(cls, session: Session,
|
||||||
playlist_id: int) -> List[int]:
|
playlist_id: int) -> List["PlaylistRows]:
|
||||||
"""
|
"""
|
||||||
For passed playlist, return a list of track rows that
|
For passed playlist, return a list of playlist rows that
|
||||||
have not been played.
|
have not been played.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -932,7 +932,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
unplayed_plrs = PlaylistRows.get_unplayed_rows(
|
unplayed_plrs = PlaylistRows.get_unplayed_rows(
|
||||||
session, playlist_id)
|
session, playlist_id)
|
||||||
if helpers.ask_yes_no("Move tracks",
|
if helpers.ask_yes_no("Move tracks",
|
||||||
f"Move {len(unplayed_playlist_rows)} tracks:"
|
f"Move {len(unplayed_plrs)} tracks:"
|
||||||
" Are you sure?"
|
" Are you sure?"
|
||||||
):
|
):
|
||||||
self.move_playlist_rows(session, unplayed_plrs)
|
self.move_playlist_rows(session, unplayed_plrs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user