mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
fix: cast data types correctly
This commit is contained in:
1 parent
f77d36ea44
commit
796e4c5de6
2 files changed
+4
-4
No files matched your search
@@ -147,7 +147,7 @@ class TreeView(CursorMixin, Gtk.TreeView): # type: ignore
|
|||||||
path = pathlist[0]
|
path = pathlist[0]
|
||||||
tree_iter = model.get_iter(path)
|
tree_iter = model.get_iter(path)
|
||||||
value = model.get_value(tree_iter, index)
|
value = model.get_value(tree_iter, index)
|
||||||
return str(value)
|
return value
|
||||||
|
|
||||||
def get_name(self) -> str:
|
def get_name(self) -> str:
|
||||||
name = self.get_value_at_index(0)
|
name = self.get_value_at_index(0)
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ class LogTreeView(ContextMixin, TreeView): # type: ignore
|
|||||||
if len(records) < 1:
|
if len(records) < 1:
|
||||||
return None
|
return None
|
||||||
for record in records:
|
for record in records:
|
||||||
#raw_record = model[record]
|
raw_record = model[record]
|
||||||
#r = [el for el in raw_record]
|
#r = [el for el in raw_record]
|
||||||
els = tuple(record)
|
els = tuple(raw_record)
|
||||||
concat = strings.delimiter.join(els)
|
concat = strings.delimiter.join(map(str, els))
|
||||||
final.append(concat)
|
final.append(concat)
|
||||||
text = "\n".join(final)
|
text = "\n".join(final)
|
||||||
return text
|
return text
|
||||||
Reference in new issue
Block a user