From e05f4f9db43a554a42d3256933e0d9d02a8c075d Mon Sep 17 00:00:00 2001 From: Mark Stuart Date: Tue, 2 Aug 2022 22:30:25 +1200 Subject: [PATCH] SUPDATA-77 Fix create or update for CKAN 2.8+ https://github.com/openresearchdata/ckanext-oaipmh/pull/24 --- ckanext/oaipmh/harvester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ckanext/oaipmh/harvester.py b/ckanext/oaipmh/harvester.py index 55c7cd9..2263bac 100644 --- a/ckanext/oaipmh/harvester.py +++ b/ckanext/oaipmh/harvester.py @@ -359,7 +359,8 @@ def import_stage(self, harvest_object): log.info('Create/update package using dict: %s' % package_dict) self._create_or_update_package( package_dict, - harvest_object + harvest_object, + 'package_show' ) Session.commit()