Skip to content

Commit a27c658

Browse files
Merge pull request #7069 from hotosm/feat/tasks-validator-id
Add validator id in task json
2 parents b9c7d80 + dd1cec2 commit a27c658

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/models/postgis/task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,8 @@ async def get_tasks_as_geojson_feature_collection(
13961396
t.task_status,
13971397
ST_AsGeoJSON(t.geometry) AS geojson,
13981398
t.locked_by,
1399-
t.mapped_by
1399+
t.mapped_by,
1400+
t.validated_by
14001401
FROM tasks t
14011402
WHERE t.project_id = :project_id
14021403
"""
@@ -1449,6 +1450,7 @@ async def get_tasks_as_geojson_feature_collection(
14491450
taskStatus=TaskStatus(row["task_status"]).name,
14501451
lockedBy=row["locked_by"],
14511452
mappedBy=row["mapped_by"],
1453+
validatedBy=row["validated_by"],
14521454
)
14531455
feature = geojson.Feature(
14541456
geometry=task_geometry, properties=task_properties

0 commit comments

Comments
 (0)