From c8a7ae7f734abc04bac63f33a7c058fcbb92eff8 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Thu, 12 Oct 2023 08:55:26 +0100 Subject: [PATCH] Black formatting --- app/models.py | 4 +++- app/playlists.py | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models.py b/app/models.py index 318ec6d..739a568 100644 --- a/app/models.py +++ b/app/models.py @@ -641,7 +641,9 @@ class Tracks(Base): path: str = Column(String(2048), index=False, nullable=False, unique=True) mtime = Column(Float, index=True) bitrate = Column(Integer, nullable=True, default=None) - playlistrows: List[PlaylistRows] = relationship("PlaylistRows", back_populates="track") + playlistrows: List[PlaylistRows] = relationship( + "PlaylistRows", back_populates="track" + ) playlists = association_proxy("playlistrows", "playlist") playdates: List[Playdates] = relationship("Playdates", back_populates="track") diff --git a/app/playlists.py b/app/playlists.py index 2b3c26b..ee93595 100644 --- a/app/playlists.py +++ b/app/playlists.py @@ -2340,12 +2340,10 @@ class PlaylistTab(QTableWidget): new_order.index(x) + min(new_order) for x in range(min(new_order), max(new_order) + 1) ] - # Reset drag mode to allow row selection by dragging self.setDragEnabled(False) - def _track_time_between_rows( self, session: scoped_session, from_plr: PlaylistRows, to_plr: PlaylistRows ) -> int: