From a691a9ea0c75bcf90ec1f9b44fb9f31ec98696b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=B6ttcher?= <c.boettcher@fz-juelich.de> Date: Mon, 19 Sep 2022 15:24:35 +0200 Subject: [PATCH] change typing --- apiserver/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/main.py b/apiserver/main.py index f12122a..29ce5fc 100644 --- a/apiserver/main.py +++ b/apiserver/main.py @@ -150,7 +150,7 @@ async def get_types(request: Request = None): @app.get("/{location_data_type}", response_model=List[List[str]]) -async def list_datasets(location_data_type: LocationDataType, name: str | None = None, url: str | None = None, has_key: List[str] | None = Query(default=None)): +async def list_datasets(location_data_type: LocationDataType, name: str = None, url: str = None, has_key: List[str] = Query(default=None)): """ list id and name of all matching registered datasets for the specified type\n name: has to be contained in the name of the object\n -- GitLab