From 68186cc5fa121b34021411f9c14f3d6fa74756f2 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 14:00:56 +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=E8=BF=98=E5=8E=9F=E6=88=90=E4=B8=8A=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E7=9A=84=E8=AE=A1=E7=AE=97=E8=A7=84=E5=88=99?= 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 476f18f..b7133c3 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 == 'pay111':#还原成以前的计算规则,如需改成累加的把pay111改成pay + if event_type == 'pay': #如需要2之后所有之和,则执行下面代码,返回值为字典的labels_dict01 labels_dict01={} v=-1