Skip to content

Commit

Permalink
fix(dev): check url_changed in domain implementation;
Browse files Browse the repository at this point in the history
- Check `url_changed`.
  • Loading branch information
JVickery-TBS committed Nov 16, 2023
1 parent ea89015 commit 8ea5328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/xloader/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def notify(self, entity, operation):
We want to check if values have changed, namely the url.
See: ckan/model/modification.py.DomainObjectModificationExtension
"""
if operation != DomainObjectOperation.changed or not isinstance(entity, Resource):
if operation != DomainObjectOperation.changed \
or not isinstance(entity, Resource) \
or not getattr(entity, 'url_changed', False):
return
context = {
"ignore_auth": True,
Expand Down

0 comments on commit 8ea5328

Please sign in to comment.