diff --git a/space2stats_api/src/pyproject.toml b/space2stats_api/src/pyproject.toml index 4b35ca8..6814abf 100644 --- a/space2stats_api/src/pyproject.toml +++ b/space2stats_api/src/pyproject.toml @@ -17,7 +17,6 @@ dependencies = [ "psycopg[pool]", "httpx", "geojson-pydantic", - "shapely", "pydantic-settings>=2.0.0", "typing_extensions", ] diff --git a/space2stats_api/src/space2stats/db.py b/space2stats_api/src/space2stats/db.py index 4199ce6..67ff0a2 100644 --- a/space2stats_api/src/space2stats/db.py +++ b/space2stats_api/src/space2stats/db.py @@ -27,6 +27,7 @@ async def connect_to_db( max_idle=settings.DB_MAX_IDLE, num_workers=settings.DB_NUM_WORKERS, kwargs=pool_kwargs, + open=True, ) # Make sure the pool is ready