From 094dab1a0be556e8116688ad41f514b0bef1d344 Mon Sep 17 00:00:00 2001 From: wuaho Date: Wed, 24 Nov 2021 15:50:08 +0800 Subject: [PATCH] =?UTF-8?q?ltv=E6=96=B0=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/x_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/x_analysis.py b/models/x_analysis.py index ee63c01..6f91aee 100644 --- a/models/x_analysis.py +++ b/models/x_analysis.py @@ -151,7 +151,7 @@ class XAnalysis: sa.Column('date') <= self.event_view['endTime'].split(' ')[0] ] if quota == '#distinct_id': - where.append(sa.Column('role_idx') == 1) + where.append(sa.Column('is_new_device') == 1) qry = sa.select().where(*where) sql = str(qry.compile(compile_kwargs={"literal_binds": True})) where_str = sql.split('WHERE ')[1]