From f4442cdcb4e25fa5f140449498e479e6fbdc3e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80=C3=AE=C3=97=C3=9A=C3=95=C3=B1?= Date: Fri, 10 Jun 2022 17:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=88=86=E6=9E=90=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=88=86=E7=BB=84=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/query.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index 6b5e3c1..51f6e1b 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -394,7 +394,10 @@ async def event_model( gb = [] if '(' in gitem: gitem = gitem.strip('(').strip(')').replace(' ', '').replace("'", '') - true_list = gitem.split(',') + if isinstance(gitem,list): + true_list = gitem + else: + true_list = gitem.split(',') for gstr in true_list: gb.append(gstr) # 存在标签分组项