Skip to content

Commit

Permalink
Better import logging
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Nov 25, 2024
1 parent c929c52 commit a62b3e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dashboard/management/commands/import_observations.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def handle(self, *args, **options) -> None:
dict()
) # We also create a hash table, so the huge loop below does not need lookups
for dataset_key, dataset_name in datasets_referenced_in_dwca.items():
self.log_with_time(f"Creating/updating dataset {dataset_key}")
dataset, _ = Dataset.objects.update_or_create(
gbif_dataset_key=dataset_key,
defaults={"name": dataset_name},
Expand Down

0 comments on commit a62b3e8

Please sign in to comment.