Skip to content

Commit

Permalink
fix /station/all
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioheinze committed Oct 12, 2024
1 parent 4b48b87 commit 9e73772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/routers/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from zoneinfo import ZoneInfo
from database import get_db
import json
import io

from models import Station, Location, Measurement, Values
from schemas import StationDataCreate, SensorsCreate
Expand Down Expand Up @@ -275,7 +276,7 @@ async def get_historical_station_data(
]
return Response(content=json.dumps(json_data), media_type="application/json")

@router.get("/all")
@router.get("/all", response_class=Response, tags=["station"])
async def get_all_stations(
output_format: str = Query(default="csv", enum=["json", "csv"]),
db: Session = Depends(get_db)
Expand Down

0 comments on commit 9e73772

Please sign in to comment.