优化ltv模型账户过滤条件

This commit is contained in:
haoqiyue 2022-12-31 11:03:06 +08:00
parent 32af767a82
commit 53dd0a7c07

View File

@ -253,7 +253,8 @@ class XAnalysis:
sql = str(qry.compile(compile_kwargs={"literal_binds": True}))
where_order_str = 'WHERE '.join(sql.split('WHERE ')[1:])
where_account = await self.handler_filts((self.account_filters, 'and'), self.ext_filters)
# where_account = await self.handler_filts((self.account_filters, 'and'), self.ext_filters)
where_account = where_order
where_account_str = 1
if where_account:
qry = sa.select().where(*where_account)