mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-01 23:59:10 +00:00
add todos
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user