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(),