Skip to content

Commit

Permalink
Fix adding dataset more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Jan 22, 2025
1 parent 93b2d8c commit 670f459
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hapi/pipelines/database/operational_presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def populate(self) -> None:
dataset = reader.read_dataset(
row["Dataset Id"], self._configuration
)
self._metadata.add_dataset(dataset)
if not self._metadata.get_dataset_name(dataset_id):
self._metadata.add_dataset(dataset)
found = False
for resource in dataset.get_resources():
if resource["id"] == resource_id:
Expand Down

0 comments on commit 670f459

Please sign in to comment.