Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Add some debug for inspire updating
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Oct 2, 2024
1 parent 974b551 commit d6bd45f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/services/ckan/v26/inspire_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def call(dataset, package)
private

def create_or_update_inspire_dataset(dataset, package)
puts "DGU- inspire create or update #{dataset.id}"
inspire_dataset = InspireDataset.find_or_initialize_by(dataset_id: dataset.id)
attributes = InspireMapper.new.call(package)

Expand Down
1 change: 1 addition & 0 deletions app/services/ckan/v26/package_differ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def diff_update(packages, datasets)

packages.select do |package|
dataset = dataset_info[package.get("id")]
puts "DGU- Select #{package.get("id")} - #{package_changed?(package, dataset)}"
dataset && package_changed?(package, dataset)
end
end
Expand Down

0 comments on commit d6bd45f

Please sign in to comment.