Skip to content

Commit

Permalink
Fix data uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Nov 12, 2024
1 parent 8b42c97 commit 2e96154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/dms/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def dataset_facets(self, facet_dict, package_type):
return new_fd

# IResourceController
def before_create(self, context, resource):
def before_resource_create(self, context, resource):
if _data_dict_is_resource(resource):
_giftless_upload(context, resource)

_update_resource_last_modified_date(resource)
return resource

def before_update(self, context, current, resource):
def before_resource_update(self, context, current, resource):
if _data_dict_is_resource(resource):
_giftless_upload(context, resource, current=current)
_update_resource_last_modified_date(resource, current=current)
Expand Down

0 comments on commit 2e96154

Please sign in to comment.