Skip to content

Commit

Permalink
SUPDATA-77 Don't try to process filtered OAI objs
Browse files Browse the repository at this point in the history
  • Loading branch information
markstuart committed Aug 2, 2022
1 parent 8493dd4 commit d2baa61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckanext/oaipmh/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ def fetch_stage(self, harvest_object):
for setSpecVal in content_dict['set_spec']):
harvest_object.content = content
harvest_object.save()
else:
log.info((
'Skipping harvest due to filter configured: %s, set_spec is %s'
% (self.set_filter, content_dict['set_spec'])
))
return False
else:
harvest_object.content = content
harvest_object.save()
Expand Down

0 comments on commit d2baa61

Please sign in to comment.