Skip to content

Commit

Permalink
use ckanext.datagovtheme.next_harvest to decouple from ckanext-harvest
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jul 3, 2024
1 parent 5dfabe0 commit 3965bc1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ckanext/datagovcatalog/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ def get_helpers(self):
return {}

def get_actions(self):
return {
"harvest_get_notifications_recipients": harvest_get_notifications_recipients
}
next_harvest = toolkit.asbool(config.get('ckanext.datagovtheme.next_harvest', 'false'))
if next_harvest:
return {}
else:
return {
"harvest_get_notifications_recipients": harvest_get_notifications_recipients
}

# IPackageController

Expand Down

0 comments on commit 3965bc1

Please sign in to comment.