Skip to content

Commit

Permalink
fixed ouput
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Dec 4, 2024
1 parent 9cb3e8b commit 672bd1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/routers/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def get_current_station_data_all(db: Session = Depends(get_db)):
)

csv = "sid,latitude,longitude,pm1,pm25,pm10\n"
csv += "\n".join(",".join(str(x) for x in q.all()))
csv += "\n".join(",".join([str(y) for y in x] for x in q.all()))

return Response(content=csv, media_type="text/csv")

Expand Down

0 comments on commit 672bd1c

Please sign in to comment.