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
This commit is contained in:
Goffi 2020-01-25 21:08:37 +01:00
commit da3b7b5fea

View file

@ -642,7 +642,7 @@ class ShareList(base.CommandBase):
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,