Skip to content

Commit

Permalink
Fix: CSV: Round total area in Sqkm to 3 decimal places
Browse files Browse the repository at this point in the history
  • Loading branch information
bshankar committed Sep 4, 2024
1 parent 9e57404 commit 1da9ad5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/services/project_search_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def create_result_dto(
list_dto.total_area = project_obj.query.with_entities(
func.coalesce(func.sum(func.ST_Area(project_obj.geometry, True) / 1000000))
).scalar()
list_dto.total_area = round(list_dto.total_area, 3)

return list_dto

Expand Down

0 comments on commit 1da9ad5

Please sign in to comment.