add todos

This commit is contained in:
Jann Stute
2024-11-28 01:29:11 +01:00
parent cb8437b0a3
commit 9681bfcf78
3 changed files with 8 additions and 4 deletions

View File

@@ -512,7 +512,7 @@ class Library:
def search_tags(
self,
search: FilterState,
search: FilterState, # TODO TSQLANG move this to str
) -> list[Tag]:
"""Return a list of Tag records matching the query."""
with Session(self.engine) as session:

View File

@@ -454,7 +454,7 @@ class ItemThumb(FlowWidget):
)
# update the entry
self.driver.frame_content[idx] = self.lib.search_library(
FilterState(id=entry.id)
FilterState(id=entry.id) # TODO TSQLANG don't search, get entry directly by id
).items[0]
self.driver.update_badges(update_items)

View File

@@ -286,7 +286,9 @@ class PreviewPanel(QWidget):
def update_selected_entry(self, driver: "QtDriver"):
for grid_idx in driver.selected:
entry = driver.frame_content[grid_idx]
results = self.lib.search_library(FilterState(id=entry.id))
results = self.lib.search_library(
FilterState(id=entry.id)
) # TODO TSQLANG don't search, get entry directly by id
logger.info(
"found item",
entries=len(results.items),
@@ -553,7 +555,9 @@ class PreviewPanel(QWidget):
# TODO - Entry reload is maybe not necessary
for grid_idx in self.driver.selected:
entry = self.driver.frame_content[grid_idx]
results = self.lib.search_library(FilterState(id=entry.id))
results = self.lib.search_library(
FilterState(id=entry.id)
) # TODO TSQLANG don't search, get entry by directly by ID
logger.info(
"found item",
entries=len(results.items),