Skip to content

Commit

Permalink
Note
Browse files Browse the repository at this point in the history
  • Loading branch information
nofurtherinformation committed Jan 9, 2025
1 parent b51c1de commit 1f0f97f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ async def get_unassigned_geoids(
SELECT path as geo_id
FROM gerrydb.{districtr_map.parent_layer}
) ids
-- This is slightly duplicative, but we either need to double join to assignments
-- or to filter gerrdb.parent_layer by NOT in assignments
-- I think this is the faster approach, if less elegant
LEFT JOIN document.assignments doc
ON ids.geo_id = doc.geo_id
AND doc.document_id = :document_id
Expand Down

0 comments on commit 1f0f97f

Please sign in to comment.