From f2be717f3e8df75c1e31c52d73b09f5e39f1a4b5 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, 8 Jul 2022 11:28:54 +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=B91?= 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 228d95c..61ab716 100644 --- a/models/behavior_analysis.py +++ b/models/behavior_analysis.py @@ -873,7 +873,7 @@ ORDER BY level if analysis in ['number_of_days', 'number_of_hours']: values_col = func.count(func.distinct(e_account_id_col)).label('values') - if analysis in ['times', 'number_of_days', 'number_of_hours']: + if analysis in ['times', 'number_of_days', 'number_of_hours', 'sum', 'avg', 'median', 'max', 'min', 'distinct_count']: if self.time_particle == 'total': qry = sa.select(*self.groupby, values_col) \ .where(and_(*where)) \