mirror of
https://github.com/aclist/dztui.git
synced 2026-08-27 10:17:31 +02:00
fix: cast data types correctly
This commit is contained in:
parent
f77d36ea44
commit
796e4c5de6
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user