Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
hayley-leblanc committed Aug 8, 2019
1 parent 0b1ba76 commit 4a990c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ckan/lib/changes.py
Expand Up @@ -225,7 +225,7 @@ def _check_metadata_changes(change_list, original, new, new_pkg):
change_list.append({u'type': u'private', u'pkg_id': new_pkg['pkg_id'],
u'title': new_pkg['title'],
u'new':
u'Private' if bool(new['private']) \
u'Private' if bool(new['private'])
else u'Public'})

# if the description of the dataset changed
Expand Down Expand Up @@ -305,13 +305,13 @@ def _maintainer_change(change_list, original, new, new_pkg):
elif not new['maintainer']:
change_list.append({u'type': u'maintainer', u'pkg_id':
new_pkg['pkg_id'], u'title': new_pkg['title'],
u'method':u 'remove'})
u'method': u'remove'})
# if there wasn't one there before
else:
change_list.append({u'type': 'maintainer', u'pkg_id':
new_pkg['pkg_id'], u'title': new_pkg['title'],
u'new_maintainer': new['maintainer'],
u'method': 'add'})
u'method': u'add'})


def _maintainer_email_change(change_list, original, new, new_pkg):
Expand Down Expand Up @@ -382,8 +382,8 @@ def _author_email_change(change_list, original, new, new_pkg):
else:
change_list.append({u'type': u'author_email', u'pkg_id':
new_pkg['pkg_id'], u'title': new_pkg['title'],
u'new_author_email': new['author_email'],
u'method': u'add'})
u'new_author_email': new['author_email'],
u'method': u'add'})


def _description_change(change_list, original, new, new_pkg):
Expand Down
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -2710,7 +2710,7 @@ def compare_pkg_dicts(original, new, old_activity_id):
change_list = []

new_pkg = {u'pkg_id': new['id'], u'name': new['name'],
u'title': new['title']}
u'title': new['title']}

_check_metadata_changes(change_list, original, new, new_pkg)

Expand Down

0 comments on commit 4a990c6

Please sign in to comment.