Compare commits
No commits in common. "c0c90595fd7f382d5c155cf130fd9da17f06a54a" and "cc8002242888adb15d9382adc5b01ab577f098e3" have entirely different histories.
c0c90595fd
...
cc80022428
@ -45,11 +45,9 @@ def Session() -> Generator[scoped_session, None, None]:
|
||||
function = frame.function
|
||||
lineno = frame.lineno
|
||||
Session = scoped_session(sessionmaker(bind=engine, future=True))
|
||||
log.debug(
|
||||
f"Session acquired, {file=}, {function=}, "
|
||||
f"function{lineno=}, {Session=}"
|
||||
)
|
||||
# log.debug(f"Session acquired, {file=}, {function=},
|
||||
# function{lineno=}, {Session=}")
|
||||
yield Session
|
||||
log.debug(" Session released")
|
||||
# log.debug(" Session released")
|
||||
Session.commit()
|
||||
Session.close()
|
||||
|
||||
@ -480,10 +480,10 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
if result == QMessageBox.Cancel:
|
||||
return
|
||||
|
||||
# Import in separate thread
|
||||
thread = threading.Thread(target=self._import_tracks,
|
||||
args=(new_tracks,))
|
||||
thread.start()
|
||||
# Import in separate thread
|
||||
thread = threading.Thread(target=self._import_tracks,
|
||||
args=(new_tracks,))
|
||||
thread.start()
|
||||
|
||||
def _import_tracks(self, tracks: list):
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user