From a664a6e822c5cf7f41e19b49cab5635515da3da5 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 3 Feb 2020 09:11:03 +0100 Subject: [PATCH] disable metrics aggregation for admin. #390 --- app/controllers/providers_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/providers_controller.rb b/app/controllers/providers_controller.rb index ef3c69895..15a0ab440 100644 --- a/app/controllers/providers_controller.rb +++ b/app/controllers/providers_controller.rb @@ -155,9 +155,9 @@ def show clients = client_count(provider_id: nil) dois = doi_count(provider_id: nil) resource_types = resource_type_count(provider_id: nil) - citations = citation_count(provider_id: nil) - views = view_count(provider_id: nil) - downloads = download_count(provider_id: nil) + citations = nil # citation_count(provider_id: nil) + views = nil # view_count(provider_id: nil) + downloads = nil # download_count(provider_id: nil) elsif @provider.member_type == "consortium" providers = provider_count(consortium_id: params[:id]) clients = client_count(consortium_id: params[:id])