Skip to content

Commit

Permalink
[#2941] Add 'num_followers' to dict returned by user_show
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Oct 5, 2012
1 parent 372ad93 commit cee94e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan/logic/action/get.py
Expand Up @@ -853,6 +853,10 @@ def user_show(context, data_dict):
continue
user_dict['datasets'].append(dataset_dict)

user_dict['num_followers'] = logic.get_action('user_follower_count')(
{'model': model, 'session': model.Session},
{'id': user_dict['id']})

return user_dict

def package_show_rest(context, data_dict):
Expand Down

0 comments on commit cee94e1

Please sign in to comment.