Fixup typos in playlistmodel.py
This commit is contained in:
parent
b15687a4c6
commit
59b6b87186
@ -75,7 +75,7 @@ class PlaylistModel(QAbstractTableModel):
|
||||
*args: Optional[QObject],
|
||||
**kwargs: Optional[QObject],
|
||||
) -> None:
|
||||
log.debug(f"{self}: PlaylistModel.__init__()")
|
||||
log.debug("PlaylistModel.__init__()")
|
||||
|
||||
self.playlist_id = playlist_id
|
||||
super().__init__(*args, **kwargs)
|
||||
@ -227,11 +227,11 @@ class PlaylistModel(QAbstractTableModel):
|
||||
|
||||
with db.Session() as session:
|
||||
# Update Playdates in database
|
||||
log.debug(f"{self): update playdates")
|
||||
log.debug(f"{self}: update playdates")
|
||||
Playdates(session, track_sequence.current.track_id)
|
||||
|
||||
# Mark track as played in playlist
|
||||
log.debug(f"{self): Mark track as played")
|
||||
log.debug(f"{self}: Mark track as played")
|
||||
plr = session.get(PlaylistRows, track_sequence.current.playlistrow_id)
|
||||
if plr:
|
||||
plr.played = True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user