Compare commits
2 Commits
bd9c8a84b9
...
999a98e2ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
999a98e2ad | ||
|
|
2ada8a27fe |
@ -55,15 +55,6 @@ syslog.addFilter(local_filter)
|
|||||||
stderr.addFilter(local_filter)
|
stderr.addFilter(local_filter)
|
||||||
stderr.addFilter(debug_filter)
|
stderr.addFilter(debug_filter)
|
||||||
|
|
||||||
# create formatter and add it to the handlers
|
|
||||||
# stderr_fmt = logging.Formatter('[%(asctime)s] %(leveltag)s: %(message)s',
|
|
||||||
# datefmt='%H:%M:%S')
|
|
||||||
# syslog_fmt = logging.Formatter(
|
|
||||||
# '[%(name)s] %(module)s.%(funcName)s - %(leveltag)s: %(message)s'
|
|
||||||
# )
|
|
||||||
# stderr.setFormatter(stderr_fmt)
|
|
||||||
# syslog.setFormatter(syslog_fmt)
|
|
||||||
|
|
||||||
|
|
||||||
class VerboseExceptionFormatter(logging.Formatter):
|
class VerboseExceptionFormatter(logging.Formatter):
|
||||||
def formatException(self, exc_info):
|
def formatException(self, exc_info):
|
||||||
|
|||||||
@ -827,7 +827,11 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
with Session() as session:
|
with Session() as session:
|
||||||
unplayed_playlist_rows = PlaylistRows.get_unplayed_rows(
|
unplayed_playlist_rows = PlaylistRows.get_unplayed_rows(
|
||||||
session, playlist_id)
|
session, playlist_id)
|
||||||
self.move_playlist_rows(session, unplayed_playlist_rows)
|
if helpers.ask_yes_no("Move tracks",
|
||||||
|
f"Move {len(unplayed_playlist_rows)} tracks:"
|
||||||
|
" Are you sure?"
|
||||||
|
):
|
||||||
|
self.move_playlist_rows(session, unplayed_playlist_rows)
|
||||||
|
|
||||||
def new_from_template(self) -> None:
|
def new_from_template(self) -> None:
|
||||||
"""Create new playlist from template"""
|
"""Create new playlist from template"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user