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(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):
|
||||
def formatException(self, exc_info):
|
||||
|
||||
@ -827,6 +827,10 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
with Session() as session:
|
||||
unplayed_playlist_rows = PlaylistRows.get_unplayed_rows(
|
||||
session, playlist_id)
|
||||
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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user