fix: cast data types correctly

This commit is contained in:
aclist 2026-05-14 17:23:23 +09:00
parent f77d36ea44
commit 796e4c5de6
2 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore
path = pathlist[0]
tree_iter = model.get_iter(path)
value = model.get_value(tree_iter, index)
return str(value)
return value
def get_name(self) -> str:
name = self.get_value_at_index(0)

View File

@ -90,10 +90,10 @@ class LogTreeView(ContextMixin, TreeView): # type: ignore
if len(records) < 1:
return None
for record in records:
#raw_record = model[record]
raw_record = model[record]
#r = [el for el in raw_record]
els = tuple(record)
concat = strings.delimiter.join(els)
els = tuple(raw_record)
concat = strings.delimiter.join(map(str, els))
final.append(concat)
text = "\n".join(final)
return text