1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

add name to about parser info

This commit is contained in:
Kelly Brazil
2019-12-16 09:04:52 -08:00
parent 56bce95214
commit 882310e268

View File

@ -96,6 +96,7 @@ def about_jc():
for parser in parser_map: for parser in parser_map:
if hasattr(parser_map[parser], 'info'): if hasattr(parser_map[parser], 'info'):
info_dict = {} info_dict = {}
info_dict['name'] = parser_map[parser].__name__.split('.')[-1]
parser_entry = vars(parser_map[parser].info) parser_entry = vars(parser_map[parser].info)
for k, v in parser_entry.items(): for k, v in parser_entry.items():
if not k.startswith('__'): if not k.startswith('__'):