Skip to content

Commit

Permalink
add dimensions name to csv header
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-urbani committed Mar 2, 2023
1 parent 73d9f99 commit f8d6864
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler/cantabular_metadata_export.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (h *CantabularMetadataExport) Handle(ctx context.Context, workerID int, msg
NumberOfOptions: dim.NumberOfOptions,
}
m.Version.Dimensions = append(m.Version.Dimensions, nonAreaTypeDimension)
m.CSVHeader = append(m.CSVHeader, dim.Name)
}
if dim.IsAreaType != nil && *dim.IsAreaType {
areaTypeDimension := dataset.VersionDimension{
Expand All @@ -150,6 +151,7 @@ func (h *CantabularMetadataExport) Handle(ctx context.Context, workerID int, msg
NumberOfOptions: dim.NumberOfOptions,
}
m.Version.Dimensions = append(m.Version.Dimensions, areaTypeDimension)
m.CSVHeader = append(m.CSVHeader, dim.Name)
}
}
}
Expand Down

0 comments on commit f8d6864

Please sign in to comment.