Skip to content

Commit

Permalink
include metrics in user meta. datacite/lupo#390
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Feb 2, 2020
1 parent d40ccd5 commit 1a4273b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/countable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_meta(user_id: nil, state: nil)

response = Maremma.get(url, accept: 'application/vnd.api+json')
return {} if response.status != 200
response.body.fetch("meta", {}).slice("created", "resourceTypes", "published")
response.body.fetch("meta", {}).slice("created", "resourceTypes", "published", "views", "downloads", "citations")
end
end
end

0 comments on commit 1a4273b

Please sign in to comment.