Skip to content
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
9 changes: 8 additions & 1 deletion apps/project/custom_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ class CustomOptionDefaults:
"title": "Not Sure",
"icon": IconEnum.REMOVE_OUTLINE,
"value": 2,
"description": "if you're not sure or unsure about the image",
"description": "you're not sure or there is cloud cover/bad imagery",
"icon_color": "#616161",
},
{
"title": "Offset",
"icon": IconEnum.ALERT_OUTLINE,
"value": 3,
"description": "",
"icon_color": "#9e9e9e",
},
]

VALIDATE_IMAGE: list[CustomOption] = [
Expand Down
4 changes: 3 additions & 1 deletion project_types/validate/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def __init__(self, project: Project):

@staticmethod
def _validate_geojson_aoi_area(area_km2: float) -> float:
MAX_AOI_AREA = 500
# NOTE: This value was previously 20sqkm. We are increasing this to 2500 to accommodate
# projects like https://tasks.hotosm.org/projects/4757
MAX_AOI_AREA = 2500
if area_km2 > MAX_AOI_AREA:
raise base_project.ValidationException(f"Area for AOI Geometry must be less than {MAX_AOI_AREA} sq. km")
return area_km2
Expand Down
Loading