diff sat_frontends/jp/cmd_file.py @ 3121:040ca99e25fe

jp (common): various Table fixes: - renamed fromDict to more accurate fromListDict - fixed handling of None filter in fromListDict - fixes show_header when no header exist - escape headers when using namedtuple, so it won't fail
author Goffi <goffi@goffi.org>
date Sat, 25 Jan 2020 21:08:37 +0100
parents c3cb18236bdf
children 9d0df638c8b4
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_file.py	Sat Jan 25 21:08:32 2020 +0100
+++ b/sat_frontends/jp/cmd_file.py	Sat Jan 25 21:08:37 2020 +0100
@@ -642,7 +642,7 @@
             show_header = True
             keys = ("name", "type", "size", "file_hash")
             headers = ("name", "type", "size", "hash")
-        table = common.Table.fromDict(
+        table = common.Table.fromListDict(
             self.host,
             files_data,
             keys=keys,