Skip to content

Commit

Permalink
refactor: remove make_data_extract replace with osm-rawdata (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock authored Oct 10, 2023
1 parent 1814edc commit a38701e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
6 changes: 2 additions & 4 deletions src/backend/app/tasks/tasks_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit a38701e

Please sign in to comment.