Skip to content

Commit

Permalink
Merge pull request #3 from ykhadilkar-rei/master
Browse files Browse the repository at this point in the history
Merging REI Repo - Part of release 1.16
  • Loading branch information
Yatin Khadilkar committed Mar 28, 2014
2 parents ced5159 + c41220a commit 9815a7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ckanext/datajson/build_datajson.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
File renamed without changes.

0 comments on commit 9815a7f

Please sign in to comment.