From fa4656eeb36c7da986501cfcab1493d5130700f0 Mon Sep 17 00:00:00 2001 From: rsmith013 Date: Thu, 13 Jan 2022 17:27:58 +0000 Subject: [PATCH 1/2] Fixing import statement to address issue #324 --- stac_fastapi/api/stac_fastapi/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_fastapi/api/stac_fastapi/api/models.py b/stac_fastapi/api/stac_fastapi/api/models.py index 0adf19af7..171fe7115 100644 --- a/stac_fastapi/api/stac_fastapi/api/models.py +++ b/stac_fastapi/api/stac_fastapi/api/models.py @@ -1,6 +1,6 @@ """api request/response models.""" -import importlib +import importlib.util from typing import Optional, Type, Union import attr From 723b16d471ee3e181e6ad3459da1a94962822f98 Mon Sep 17 00:00:00 2001 From: rsmith013 Date: Thu, 13 Jan 2022 17:36:55 +0000 Subject: [PATCH 2/2] updating changelog --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 16f312334..22f220c3d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -18,6 +18,7 @@ ### Fixed +* Import error using `importlib.util` ([#325](https://github.com/stac-utils/stac-fastapi/pull/325)) * Add environment variables required by upgraded pgstac container ([#313](https://github.com/stac-utils/stac-fastapi/pull/313)) * Enabled `ContextExtension` by default ([#207](https://github.com/stac-utils/stac-fastapi/issues/207)) * Content-type response headers for the /search endpoint now reflect the geojson response expected in the STAC api spec ([#220](https://github.com/stac-utils/stac-fastapi/issues/220))