From 15b4404c459307bcd4716f06dc5757a5c6731bc5 Mon Sep 17 00:00:00 2001 From: wuaho Date: Tue, 30 Nov 2021 16:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=99=E5=AD=98=E6=A0=87=E7=AD=BE=E8=BF=87?= =?UTF-8?q?=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/behavior_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/behavior_analysis.py b/models/behavior_analysis.py index 7ed60b1..999f6be 100644 --- a/models/behavior_analysis.py +++ b/models/behavior_analysis.py @@ -762,7 +762,7 @@ ORDER BY values desc""" if where: qry = sa.select().where(*where) sql = str(qry.compile(compile_kwargs={"literal_binds": True})) - where_a = sql.split('WHERE ')[1] + where_a = 'WHERE '.join(sql.split('WHERE ')[1:]) where, _ = await self.handler_filts((self.events[1]['filts'], self.events[1].get('relation', 'and')), (self.global_filters, self.global_relation)