diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index e26f421..93849d2 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -394,8 +394,9 @@ async def event_model( groups = [] for gitem in item['groups']: gb = [] - if '(' in gitem: - gitem = gitem.strip('(').strip(')').replace(' ', '').replace("'", '') + if '(' in gitem or '[' in gitem: + gitem = gitem.replace('(', '').replace(')', '').replace(' ', '').replace("'", '') \ + .replace('[', '').replace(']', '') if isinstance(gitem, list): true_list = gitem else: