Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Aug 30, 2023
1 parent 1cc66a6 commit 6fe8463
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ckanext/datajson/datajson.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,12 +852,11 @@ def make_upstream_content_hash(self, datasetdict, harvest_source,

if schema_version == '1.0':
return hash_function(json.dumps(datasetdict, sort_keys=True) + # NOQA W504
"|" + harvest_source.config + "|" + # NOQA W504
self.HARVESTER_VERSION).hexdigest()
"|" + harvest_source.config + "|" + # NOQA W504
self.HARVESTER_VERSION).hexdigest()
else:
return hash_function((json.dumps(datasetdict, sort_keys=True) + "|" + json.dumps(catalog_extras,
sort_keys=True)).encode('utf-8')).hexdigest()

sort_keys=True)).encode('utf-8')).hexdigest()

def find_extra(self, pkg, key):
for extra in pkg["extras"]:
Expand Down

0 comments on commit 6fe8463

Please sign in to comment.