Skip to content
Snippets Groups Projects
Commit 171938cb authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed wrong encode

parent e819bc0e
No related branches found
No related tags found
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
......@@ -45,8 +45,7 @@ class KielHarvester(ODSHBaseHarvester):
.filter(HarvestObject.harvest_source_id == harvest_job.source.id).all()])
log.info("Package IDs in DB: %s" % str(package_ids_in_db))
for dataset in datasets:
guid = str(uuid.uuid3(uuid.NAMESPACE_URL,
dataset.get("url").encode('ascii', 'ignore')))
guid = str(uuid.uuid3(uuid.NAMESPACE_URL, dataset.get("url")))
if guid not in package_ids_in_db:
obj = HarvestObject(job=harvest_job, guid=guid)
obj.content = json.dumps(dataset)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment