Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into worker-improved
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 authored Feb 29, 2024
2 parents d7f5613 + 6eefd3f commit 57340d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/datacatalog/datacatalogv3/cms_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (c *GenericItem) Stage() stage {

type GenericItemDataset struct {
ID string `json:"id,omitempty" cms:"id"`
Name string `json:"name,omitempty" cms:"name,text"`
Name string `json:"name,omitempty" cms:"item_name,text"`
Data string `json:"data,omitempty" cms:"data,-"`
Desc string `json:"desc,omitempty" cms:"desc,textarea"`
DataURL string `json:"url,omitempty" cms:"url,url"`
Expand Down
2 changes: 1 addition & 1 deletion server/datacatalog/datacatalogv3/conv_dataset_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (i *GenericItem) toDatasets(area *areaContext, dts []plateauapi.DatasetType
ID: id,
Name: standardItemName(i.Name, "", area.Name()),
Description: lo.EmptyableToPtr(i.Desc),
Year: area.CityItem.YearInt(),
Year: year,
RegisterationYear: year,
OpenDataURL: lo.EmptyableToPtr(i.OpenDataURL),
PrefectureID: area.PrefID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,7 @@ func plateauDatasetItemSeedFrom(seed plateauDatasetSeed) (items []plateauDataset
}

warning = append(warning, w...)
if item != nil {
items = append(items, *item)
}
items = append(items, *item)
}

return
Expand Down

0 comments on commit 57340d3

Please sign in to comment.