diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index 751e61e0d4..693eadea73 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -2119,7 +2119,7 @@ async def update_project_form( db.commit() # OSM Extracts for whole project - pg = PostgresClient(settings.UNDERPASS_API_URL, "underpass") + pg = PostgresClient("underpass") outfile = ( f"/tmp/{project_title}_{category}.geojson" # This file will store osm extracts ) diff --git a/src/backend/app/tasks/tasks_crud.py b/src/backend/app/tasks/tasks_crud.py index 3bd1db2d36..467e73c86a 100644 --- a/src/backend/app/tasks/tasks_crud.py +++ b/src/backend/app/tasks/tasks_crud.py @@ -22,14 +22,12 @@ from geoalchemy2.shape import from_shape from geojson import dump from loguru import logger as log -from osm_fieldwork.make_data_extract import PostgresClient +from osm_rawdata.postgres import PostgresClient from shapely.geometry import shape from sqlalchemy import column, select, table from sqlalchemy.orm import Session from sqlalchemy.sql import text -from app.config import settings - from ..central import central_crud from ..db import db_models from ..db.postgis_utils import geometry_to_geojson @@ -332,7 +330,7 @@ async def update_task_files( task_polygons = f"/tmp/{project_name}_{category}_{task_id}.geojson" # Update data extracts in the odk central - pg = PostgresClient(settings.UNDERPASS_API_URL, "underpass") + pg = PostgresClient("underpass") category = "buildings"