From 5718d80b0c74635855d4f5084d5b7e7221106b9e Mon Sep 17 00:00:00 2001 From: acidvegas Date: Tue, 30 May 2023 03:34:05 -0400 Subject: [PATCH] Fixed parser not handling booleans --- parser.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parser.py b/parser.py index 615acf1..c8a6a74 100644 --- a/parser.py +++ b/parser.py @@ -36,8 +36,6 @@ if len(sys.argv) >= 2: elif type(data) == list: for item in data: found.append(option, parse(item, raw)) - elif type(data) == bool: - found.append(parse(option, str(item), raw)) else: for item in data: _data = data[item] @@ -47,8 +45,6 @@ if len(sys.argv) >= 2: for _item in _data: if option in _item: found.append(parse(option, _item, raw)) - elif type(_data) == bool: - found.append(parse(option, str(_item), raw)) if found: print(f'\nfound {len(found)} results in {len(logs)} logs') else: