From ccfab4c579f95984c60779bcda0ed11fd90541fa Mon Sep 17 00:00:00 2001 From: Vincent Sarago Date: Wed, 21 Aug 2024 15:07:33 +0200 Subject: [PATCH] Apply suggestions from code review --- .../core/collection_search/collection_search.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py b/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py index 2a5acbce..d06812fa 100644 --- a/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py +++ b/stac_fastapi/extensions/stac_fastapi/extensions/core/collection_search/collection_search.py @@ -79,7 +79,7 @@ def from_extensions( schema_href: Optional[str] = None, ) -> "CollectionSearchExtension": """Create CollectionSearchExtension object from extensions.""" - supported_extension = { + supported_extensions = { "FreeTextExtension": ConformanceClasses.FREETEXT, "FreeTextAdvancedExtension": ConformanceClasses.FREETEXT, "QueryExtension": ConformanceClasses.QUERY, @@ -92,7 +92,7 @@ def from_extensions( ConformanceClasses.BASIS, ] for ext in extensions: - conf = supported_extension.get(ext.__class__.__name__, None) + conf = supported_extensions.get(ext.__class__.__name__, None) if not conf: warnings.warn( f"{ext.__class__.__name__} extension not supported in `CollectionSearchExtension.from_extensions` method.", # noqa: E501 @@ -187,7 +187,7 @@ def from_extensions( router: Optional[APIRouter] = None, ) -> "CollectionSearchPostExtension": """Create CollectionSearchPostExtension object from extensions.""" - supported_extension = { + supported_extensions = { "FreeTextExtension": ConformanceClasses.FREETEXT, "FreeTextAdvancedExtension": ConformanceClasses.FREETEXT, "QueryExtension": ConformanceClasses.QUERY, @@ -200,7 +200,7 @@ def from_extensions( ConformanceClasses.BASIS, ] for ext in extensions: - conf = supported_extension.get(ext.__class__.__name__, None) + conf = supported_extensions.get(ext.__class__.__name__, None) if not conf: warnings.warn( f"{ext.__class__.__name__} extension not supported in `CollectionSearchExtension.from_extensions` method.", # noqa: E501