This commit is contained in:
2023-10-08 15:57:08 +02:00
parent d78068a99e
commit e16e33f194
2 changed files with 198 additions and 197 deletions

View File

@@ -13,7 +13,7 @@ locals {
for station in local.sorted-stations: flatten([
for name in distinct(sort(station.organisations)):flatten([
for org in local.sorted-organisations: flatten([
for dsname in reverse(distinct(sort([for d in org.datasets: d.name]))):
for dsname in reverse(distinct(sort([for d in org.datasets: d.name]))): flatten([
for ds in org.datasets:
merge(ds, {
"name" = "${org.name}-${ds.name}"
@@ -22,6 +22,7 @@ locals {
"usage" = "station"
"station" = station
}) if ds.name = dsname
])
]) if org.name == name
])
])