Commit 4c63bc76 authored by François Ferry's avatar François Ferry
Browse files

fix: encoding issue

parent c9942aae91f9
Pipeline #89167 failed with stages
in 9 minutes and 22 seconds
......@@ -293,7 +293,7 @@ class CkanJsonLicenseView(jsonviews.JsonMixIn, EntityView):
("status", "active"),
]:
license[key] = found.get(key, default_value)
self.w(json_dumps(license, sort_keys=True))
self.w(json_dumps(license, sort_keys=True).encode("ascii"))
class CkanJsonLicensesAction(action.Action):
......@@ -321,7 +321,7 @@ class CkanJsonLicensesView(jsonviews.JsonMixIn, AnyRsetView):
for scheme in self.cw_rset.entities():
for concept in scheme.reverse_in_scheme:
licenses.append(json.loads(concept.view("dcat.ckan.json.license")))
self.w(json_dumps(licenses, sort_keys=True))
self.w(json_dumps(licenses, sort_keys=True).encode("ascii"))
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment