diff sat_frontends/jp/cmd_event.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 fee60f17ebac
children 9d0df638c8b4
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_event.py	Sat Jan 25 21:08:32 2020 +0100
+++ b/sat_frontends/jp/cmd_event.py	Sat Jan 25 21:08:37 2020 +0100
@@ -316,7 +316,7 @@
 
         show_table = OUTPUT_OPT_TABLE in self.args.output_opts
 
-        table = common.Table.fromDict(
+        table = common.Table.fromListDict(
             self.host,
             data,
             ("nick",)