Black formatting

This commit is contained in:
Keith Edmunds 2023-10-12 08:55:26 +01:00
parent 87ab973439
commit c8a7ae7f73
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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: