From f9b6f3adc6243ba6ae67ce5f21ca711fe6148a11 Mon Sep 17 00:00:00 2001 From: wuaho Date: Fri, 30 Jul 2021 16:27:22 +0800 Subject: [PATCH] =?UTF-8?q?ltv=20=E5=A4=9A=E7=BB=B4=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/xquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/xquery.py b/api/api_v1/endpoints/xquery.py index e6414ac..5b8fe36 100644 --- a/api/api_v1/endpoints/xquery.py +++ b/api/api_v1/endpoints/xquery.py @@ -52,7 +52,7 @@ async def ltv_model_sql( df.rename(columns={'date': '注册日期', 'cnt1': '角色数'}, inplace=True) if quota == '#account_id': df.rename(columns={'cnt1': '角色数'}, inplace=True) - elif quota in ('#account_id'): + elif quota in ('#distinct_id',): df.rename(columns={'cnt1': '设备数'}, inplace=True) data = { 'title': df.columns.tolist(),