diff --git a/app/models/doi.rb b/app/models/doi.rb index 65be0e111..1e6c876a8 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -876,7 +876,7 @@ def view_ids end def view_count - views.pluck(:total).inject(:+) + views.pluck(:total).inject(:+).to_i end def views_over_time @@ -888,7 +888,7 @@ def download_ids end def download_count - downloads.pluck(:total).inject(:+) + downloads.pluck(:total).inject(:+).to_i end def downloads_over_time