Skip to content

Commit

Permalink
Remove CKAN 2.10 condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Jun 13, 2024
1 parent 5f4cbb1 commit 15f47ac
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ckanext/validation/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,15 @@ def after_update(self, context, data_dict):
del self.resources_to_validate[resource_id]

_run_async_validation(resource_id)

def after_dataset_create(self, context, data_dict):
self.after_create(context, data_dict)

if ckan_2_10:

def after_dataset_create(self, context, data_dict):
self.after_create(context, data_dict)

def before_resource_update(self, context, current_resource, updated_resource):
self.before_update(context, current_resource, updated_resource)
def before_resource_update(self, context, current_resource, updated_resource):
self.before_update(context, current_resource, updated_resource)

def after_dataset_update(self, context, data_dict):
self.after_update(context, data_dict)
def after_dataset_update(self, context, data_dict):
self.after_update(context, data_dict)


# IPackageController
Expand Down

0 comments on commit 15f47ac

Please sign in to comment.