Skip to content

Commit

Permalink
Merge pull request #164 from hrodmn/optional-extent-middleware
Browse files Browse the repository at this point in the history
use spatial_extent and datetime_extent everywhere
  • Loading branch information
vincentsarago authored Jan 11, 2024
2 parents 9780ebc + 65ddb39 commit c3efc80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tipg/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ async def lifespan(app: FastAPI):
exclude_functions=db_settings.exclude_functions,
exclude_function_schemas=db_settings.exclude_function_schemas,
spatial=db_settings.only_spatial_tables,
spatial_extent=db_settings.spatial_extent,
datetime_extent=db_settings.datetime_extent,
)

add_exception_handlers(app, DEFAULT_STATUS_CODES)
Expand Down Expand Up @@ -152,5 +154,7 @@ async def refresh(request: Request):
exclude_functions=db_settings.exclude_functions,
exclude_function_schemas=db_settings.exclude_function_schemas,
spatial=db_settings.only_spatial_tables,
spatial_extent=db_settings.spatial_extent,
datetime_extent=db_settings.datetime_extent,
)
return request.app.state.collection_catalog

0 comments on commit c3efc80

Please sign in to comment.