1
mirror of git://git.acid.vegas/IRCP.git synced 2024-11-23 00:16:41 +00:00

Fixed parser not handling booleans

This commit is contained in:
Dionysus 2023-05-30 03:34:05 -04:00
parent 32f45694ee
commit 5718d80b0c
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -36,8 +36,6 @@ if len(sys.argv) >= 2:
elif type(data) == list: elif type(data) == list:
for item in data: for item in data:
found.append(option, parse(item, raw)) found.append(option, parse(item, raw))
elif type(data) == bool:
found.append(parse(option, str(item), raw))
else: else:
for item in data: for item in data:
_data = data[item] _data = data[item]
@ -47,8 +45,6 @@ if len(sys.argv) >= 2:
for _item in _data: for _item in _data:
if option in _item: if option in _item:
found.append(parse(option, _item, raw)) found.append(parse(option, _item, raw))
elif type(_data) == bool:
found.append(parse(option, str(_item), raw))
if found: if found:
print(f'\nfound {len(found)} results in {len(logs)} logs') print(f'\nfound {len(found)} results in {len(logs)} logs')
else: else: