diff --git a/api/api_v1/endpoints/query.py b/api/api_v1/endpoints/query.py index 6833187..e00dd71 100644 --- a/api/api_v1/endpoints/query.py +++ b/api/api_v1/endpoints/query.py @@ -54,7 +54,7 @@ async def query_sql( sql = data_in.sql sql = sql.replace('$game', game) df = await ckdb.query_dataframe(sql) - df_to_stream = DfToStream((df, '留存分析')) + df_to_stream = DfToStream((df, 'result')) with df_to_stream as d: export = d.to_stream() return StreamingResponse(export, media_type=mime, headers={'Content-Disposition': f'filename="{file_name}"'})