commit AI suggested performance enhancements
This commit is contained in:
@@ -32,6 +32,7 @@ class CheckThread(QtCore.QThread):
|
||||
range(len(self.items)),
|
||||
unit_scale=True,
|
||||
)
|
||||
swb_client = SWB()
|
||||
for i in tqdm_object:
|
||||
book: BookData = self.items[i]
|
||||
author = (
|
||||
@@ -43,7 +44,7 @@ class CheckThread(QtCore.QThread):
|
||||
# remove trailing punctuation from title
|
||||
title = book.title.rstrip(" .:,;!?")
|
||||
response: list[BookData] = []
|
||||
response = SWB().getBooks(
|
||||
response = swb_client.getBooks(
|
||||
[
|
||||
"pica.bib=20735",
|
||||
f"pica.tit={title.split(':')[0].strip()}",
|
||||
@@ -88,4 +89,6 @@ class ProgressDialog(QDialog):
|
||||
layout.addWidget(self.start_button)
|
||||
|
||||
def start(self):
|
||||
|
||||
# Start logic is managed externally; keep method for UI wiring
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user