Skip to content

Commit ccd1454

Browse files
ranjan-sthaRup-Narayan-Rajbanshi
authored andcommitted
fix(gdacs): fix the impact id
1 parent 2f59157 commit ccd1454

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pystac_monty/sources/gdacs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ def make_impact_items(self, event_item: Item, data: GdacsEventDataValidator) ->
376376
return impact_items
377377

378378
def make_impact_item_from_sendai_entry(
379-
self, entry: Sendai, hazard_item: Item, data: Optional[GdacsEventDataValidator] = None
379+
self, entry: Sendai, event_item: Item, data: Optional[GdacsEventDataValidator] = None
380380
) -> Item:
381-
item = hazard_item.clone()
381+
item = event_item.clone()
382382
item.id = phrase_to_dashed(
383-
item.id.replace(STAC_HAZARD_ID_PREFIX, STAC_IMPACT_ID_PREFIX)
383+
item.id.replace(STAC_EVENT_ID_PREFIX, STAC_IMPACT_ID_PREFIX)
384384
+ "-"
385385
+ entry.sendaitype
386386
+ "-"

0 commit comments

Comments
 (0)