diff --git a/Pipfile b/Pipfile index b0976d84f49fc125d4148a160608122ee5973ba2..921318cd0001bcf6253b419eb8fa30d2c50a375f 100644 --- a/Pipfile +++ b/Pipfile @@ -22,7 +22,7 @@ databases = {extras = ["postgresql", "sqlite"],version = "*"} fastapi = "*" httpx = "==0.11.1" openpyxl = "*" -orm = "*" +orm = "==0.1.5" pydantic = "==1.4" sqlalchemy = "*" uvicorn = "*" diff --git a/geomagio/api/ws/data.py b/geomagio/api/ws/data.py index 16638de4a17e943aee01612a488aff16a16a505e..e534e07d8439df2842b52b26e9f4f4abc0311fa3 100644 --- a/geomagio/api/ws/data.py +++ b/geomagio/api/ws/data.py @@ -86,7 +86,7 @@ def get_data( endtime: UTCDateTime = Query(None), elements: List[str] = Query(DEFAULT_ELEMENTS), sampling_period: Union[SamplingPeriod, float] = Query(SamplingPeriod.MINUTE), - data_type: Union[DataType, str] = Query(DataType.ADJUSTED), + data_type: Union[DataType, str] = Query(DataType.ADJUSTED, alias="type"), format: OutputFormat = Query(OutputFormat.IAGA2002), data_factory: TimeseriesFactory = Depends(get_data_factory), ) -> Response: