Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vdegove committed Jan 9, 2024
1 parent 114d01b commit 5a84e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/transport/lib/db/dataset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -986,9 +986,9 @@ defmodule DB.Dataset do
|> put_assoc(:communes, [])
end

# We’ll only cast datagouv zone if there is something written in the associated territory name in the backoffice
defp cast_datagouv_zone(changeset, %{"zones" => zones_insee}, _associated_territory_name) do
communes =
# Fetch communes where the INSEE code is in the list of zones_insee
Commune
|> where([c], c.insee in ^zones_insee)
|> Repo.all()
Expand Down

0 comments on commit 5a84e64

Please sign in to comment.