Skip to content

Commit

Permalink
update and move water forecast polygon lookup index name to constant …
Browse files Browse the repository at this point in the history
…variable
  • Loading branch information
Dukestep committed Sep 26, 2024
1 parent 0a3bb92 commit e06bd74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion msc_pygeoapi/loader/marine_weather_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
# index settings
INDEX_NAME = 'marine_weather_{}'

WATER_FORECAST_POLYGON_INDEX = 'forecast_polygons_water_hybrid'

MAPPINGS = {
'regular-forecasts': {
'issued_datetime_utc': {
Expand Down Expand Up @@ -405,7 +407,7 @@ def set_area_info(self):

try:
result = self.conn.Elasticsearch.get(
index='forecast_polygons_water_detail',
index=WATER_FORECAST_POLYGON_INDEX,
id=forecast_id,
_source=['geometry'],
)
Expand Down

0 comments on commit e06bd74

Please sign in to comment.