Skip to content

Commit bcac7a7

Browse files
Merge pull request #18 from nsidc/ardwa-17
ARDWA-17
2 parents 32b79d2 + 284e335 commit bcac7a7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/aross_stations_db/api/v1/stations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ async def station_data_get(
6868
async def station_data_post(
6969
db: Annotated[Session, Depends(get_db_session)],
7070
*,
71-
start: Annotated[dt.datetime, Form(description="ISO-format timestamp")] | None = None,
72-
end: Annotated[dt.datetime, Form(description="ISO-format timestamp")] | None = None,
71+
start: Annotated[dt.datetime, Form(description="ISO-format timestamp")],
72+
end: Annotated[dt.datetime, Form(description="ISO-format timestamp")],
7373
stations: Annotated[list[str], Form(description="Station ID(s)")]
7474
) -> StreamingResponse:
7575
return station_data(db, start, end, stations)

src/aross_stations_db/api/v1/timeseries.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
)
1616
from aross_stations_db.db.query import timeseries_query
1717

18-
from loguru import logger
19-
2018
router = APIRouter()
2119

2220
@router.get("/monthly")
@@ -29,7 +27,6 @@ def get_monthly_timeseries(
2927
stations: Annotated[list[str], Query(description="List of station identifiers")] = [],
3028
) -> list[TimeseriesJsonElement]:
3129
"""Get a monthly timeseries of events matching query parameters."""
32-
logger.debug(f"STATIONS: {stations}")
3330
query = timeseries_query(db=db, start=start, end=end, polygon=polygon, stations=stations)
3431

3532
return timeseries_query_results_to_json(query.all())
@@ -45,7 +42,6 @@ def post_monthly_timeseries(
4542
stations: Annotated[list[str], Form(description="List of station identifiers")] = [],
4643
) -> list[TimeseriesJsonElement]:
4744
"""Get a monthly timeseries of events matching query parameters."""
48-
logger.debug(f"STATIONS: {stations}")
4945
query = timeseries_query(db=db, start=start, end=end, polygon=polygon, stations=stations)
5046

5147
return timeseries_query_results_to_json(query.all())

0 commit comments

Comments
 (0)