From db7a54f03c30ebda6f71fee56bcadfe00811173f Mon Sep 17 00:00:00 2001 From: wuaho Date: Fri, 30 Jul 2021 10:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index 8e72a2a..bea3ba5 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -72,6 +72,7 @@ async def event_model( date_range = item['date_range'] q['date_range'] = date_range df = await ckdb.query_dataframe(sql) + df.fillna(0,inplace=True) if df.shape[0] == 0: return schemas.Msg(code=0, msg='ok', data=[q])