Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change label from osm id to house id, Turn geo restrict on #6

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/backend/app/central/central_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,8 @@ async def feature_geojson_to_entity_dict(
entity_label = f"Additional Feature {uuid4()}"
else:
properties["status"] = "0"
task_id = properties.get("task_id", None)
feature_id = feature.get("id", None)
entity_label = f"Task {task_id} Feature {feature_id}"
feature_id = properties.get("osm_id", None)
entity_label = f"House id {feature_id}"

return {
"label": entity_label,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/app/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ class DbProject(BaseModel):
task_num_buildings: Optional[int] = None
new_geom_type: Optional[DbGeomType] = None
geo_restrict_distance_meters: Optional[PositiveInt] = None
geo_restrict_force_error: Optional[bool] = None
geo_restrict_force_error: bool = True
hashtags: Optional[list[str]] = None
due_date: Optional[AwareDatetime] = None
updated_at: Optional[AwareDatetime] = None
Expand Down
Loading