From c423941c634ef7ab2d9bc57eaf7332abf28eddcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Wed, 8 Jun 2022 10:33:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=A4=9A=E6=AC=A1=E4=BB=98=E8=B4=B9=E5=8D=A0?= =?UTF-8?q?=E6=AF=94=E6=94=B9=E6=88=90=E4=BB=A5=E5=89=8D=E7=9A=84=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=8C1=E6=AC=A1=E4=BB=98=E8=B4=B9=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E5=B0=B1=E4=B8=80=E6=AC=A1=E4=BB=98=E8=B4=B9=EF=BC=8C?= =?UTF-8?q?2=E6=AC=A1=E4=BB=98=E8=B4=B9=E4=BA=BA=E6=95=B0=E5=B0=B1?= =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E4=BB=98=E8=B4=B9=EF=BC=8C3=E6=AC=A1?= =?UTF-8?q?=E4=BB=98=E8=B4=B9=E4=BA=BA=E6=95=B0=E5=B0=B1=E4=B8=89=E6=AC=A1?= =?UTF-8?q?=E4=BB=98=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index b7133c3..476f18f 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -1134,7 +1134,7 @@ async def scatter_model( label = str(key2) n = len(tmp_df2) labels_dict[label] = n - if event_type == 'pay': + if event_type == 'pay111':#还原成以前的计算规则,如需改成累加的把pay111改成pay #如需要2之后所有之和,则执行下面代码,返回值为字典的labels_dict01 labels_dict01={} v=-1