Skip to content

Commit 8c20f70

Browse files
committed
fixup! fix(exports): fix exports for find project
1 parent 1ab5e6c commit 8c20f70

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

apps/project/exports/project_tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def generate_project_tasks(
4444
PTG.{fd_name(ProjectTaskGroup.firebase_id)} as group_id,
4545
PT.{fd_name(ProjectTask.firebase_id)} as task_id,
4646
-- Metadata
47+
-- NOTE: Using ST_Multi only to make the exports backward compatible with previous exports
4748
ST_AsText(ST_Multi({fd_name(ProjectTask.geometry)})) AS geom,
4849
'{project.project_type_specifics.get("zoom_level")}' as tile_z,
4950
-- NOTE: Existing tile_x and tile_y are passed from project_type_specifics now

apps/project/exports/tasking_manager_geometries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def _get_row_value[T: int | float](
5959

6060
task_id = row[1]
6161

62+
# TODO: rename all task_N to tile_N
6263
task_x = _get_row_value(column_index_map, row, "tile_x")
6364
task_y = _get_row_value(column_index_map, row, "tile_y")
6465
task_z = _get_row_value(column_index_map, row, "tile_z")
@@ -108,6 +109,7 @@ def _get_row_value[T: int | float](
108109
task_x,
109110
task_y,
110111
task_z,
112+
# NOTE: We do not flatten to 2D only for backwards compability
111113
skip_flatten=True,
112114
),
113115
},

0 commit comments

Comments
 (0)