Skip to content

Commit b5cf436

Browse files
committed
fix: use result.data instead of result.data_points in API
1 parent c101eda commit b5cf436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async def extract_data(
255255

256256
# Build CSV
257257
csv_lines = ["x,y"]
258-
for point in result.data_points:
258+
for point in result.data:
259259
csv_lines.append(f"{point[0]},{point[1]}")
260260
csv_content = "\n".join(csv_lines)
261261

@@ -343,7 +343,7 @@ async def extract_data_base64(
343343
)
344344

345345
csv_lines = ["x,y"]
346-
for point in result.data_points:
346+
for point in result.data:
347347
csv_lines.append(f"{point[0]},{point[1]}")
348348
csv_content = "\n".join(csv_lines)
349349

0 commit comments

Comments
 (0)