diff --git a/ckanext/datajson/build_datajson.py b/ckanext/datajson/build_datajson.py index a9d5e463..b899ffcd 100644 --- a/ckanext/datajson/build_datajson.py +++ b/ckanext/datajson/build_datajson.py @@ -98,7 +98,13 @@ def make_datajson_entry(package): log.warn("Missing required field detected for package with id=[%s], title=['%s']: '%s'", package.get('id', None), package.get('title', None), required_field) return - return OrderedDict(striped_retlist) + # When saved from UI DataQuality value is stored as "on" instead of True. + # Check if value is "on" and replace it with True. + striped_retlist_dict = OrderedDict(striped_retlist) + if striped_retlist_dict.get('dataQuality') == "on": + striped_retlist_dict['dataQuality'] = True + + return striped_retlist_dict def extra(package, key, default=None): diff --git a/pip-requirements.txt b/requirements.txt similarity index 100% rename from pip-requirements.txt rename to requirements.txt