Skip to content

Commit

Permalink
use ckanext.datagovtheme.harvest_next to decouple from ckanext-harvest
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Jul 8, 2024
1 parent 5dfabe0 commit 4065ed6
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
}
harvest_next = toolkit.asbool(config.get('ckanext.datagovtheme.harvest_next', 'false'))
if harvest_next:
return {}
else:
return {
"harvest_get_notifications_recipients": harvest_get_notifications_recipients
}

# IPackageController

Expand Down

0 comments on commit 4065ed6

Please sign in to comment.