Skip to content

Commit

Permalink
resultTime -> reportTime
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Dec 2, 2024
1 parent 6fdabe2 commit 53967a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions wis2box-management/wis2box/api/backend/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,20 @@
'raw': {'type': 'keyword'}
}
},
'observationTime': {
'reportTime': {
'type': 'date',
'fields': {
'raw': {'type': 'keyword'}
}
},
'reportId': {
'type': 'text',
'fields': {
'raw': {
'type': 'keyword'
}
}
},
'phenomenonTime': {
'type': 'text'
},
Expand All @@ -141,14 +149,6 @@
'description': {
'type': 'text'
},
'reportId': {
'type': 'text',
'fields': {
'raw': {
'type': 'keyword'
}
}
},
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/data/bufr2geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def transform(self, input_data: Union[Path, bytes],
for item in result['items']:
id = item['id']

data_date = item['properties']['resultTime']
data_date = item['properties']['reportTime']
self.output_data[id] = {
'_meta': {
'identifier': id,
Expand Down
2 changes: 1 addition & 1 deletion wis2box-management/wis2box/data/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def transform(self, input_data: Union[Path, bytes],
LOGGER.debug('Procesing GeoJSON data')
data_ = json.loads(input_data)
identifier = data_['id']
data_date = data_['properties']['resultTime']
data_date = data_['properties']['reportTime']
self.output_data[identifier] = {
'_meta': {
'identifier': identifier,
Expand Down

0 comments on commit 53967a5

Please sign in to comment.