From 21a0149b7bc1e1ceb2ea5b0f4d0bb7806177bc5e Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Mon, 18 Nov 2024 10:45:31 +0000 Subject: [PATCH] Update badges_controller.rb --- app/controllers/badges_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/badges_controller.rb b/app/controllers/badges_controller.rb index f058d7c8..9b90b02e 100644 --- a/app/controllers/badges_controller.rb +++ b/app/controllers/badges_controller.rb @@ -13,7 +13,7 @@ class BadgesController < ApplicationController } def reviewed_by - n_reviews = Paper.where(":reviewer = ANY (reviewers)", reviewer: params[:reviewer]).count + n_reviews = Paper.visibile.where(":reviewer = ANY (reviewers)", reviewer: params[:reviewer]).count @key = string_item("JOSS Reviews", COLORS[:gray]) @value = string_item(n_reviews.to_s, COLORS[:blue], @key[:outer_width]) @badge_width = @key[:outer_width] + @value[:outer_width] @@ -52,4 +52,4 @@ def text_x_position(width, offset=0) def em_width VERDANA_WIDTHS["m".codepoints[0]] end -end \ No newline at end of file +end