From 0fb71488de76553069499364e7c40ed72612993c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Fri, 5 Aug 2022 10:41:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E5=88=86=E5=B8=83=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=A4=A7=E5=B0=8F=E5=80=BC=E7=9B=B8=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= 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 83fe2b2..aaec520 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -621,7 +621,7 @@ async def retention_model(request: Request, max_v = int(df[g_data['columnName']].max()) min_v = int(df[g_data['columnName']].min()) interval = (max_v - min_v) // 10 or 1 - for i in range(min_v, max_v, interval): + for i in range(min_v, max_v+1, interval): zidai.append([i, i + interval]) true_group.append(zidai)