Fix ukladani fotek, pokus o odstraneni Optional

This commit is contained in:
Michal Kváček
2024-10-09 06:53:42 +02:00
parent d31f1c0c61
commit c6316262e5
30 changed files with 139 additions and 134 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ class PointOfInterestQueries:
async def points_of_interest(
root, info,
limit: int, offset: int = 0,
search: Optional[str] = None,
search: str | None = None,
public: bool = False
) -> PaginationWindow[PointOfInterest]:
query = BaseQueryResolver(PointOfInterest, models.PointOfInterest).get_query(
@@ -41,8 +41,8 @@ class PointOfInterestQueries:
@allow_public
async def point_of_interest(
root, info,
url_slug: Optional[str] = None,
id: Optional[int] = None,
url_slug: str | None = None,
id: int | None = None,
public: bool = False
) -> PointOfInterest:
filter_params = get_detail_filters(id, url_slug)