From 613890ad26e0e9b33b11bc27b7b5bbae7b1c927a Mon Sep 17 00:00:00 2001 From: Leandro Radusky Date: Fri, 7 Jul 2023 15:12:40 +0200 Subject: [PATCH] Lint fixes --- app/models/samples_report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/samples_report.rb b/app/models/samples_report.rb index 0778335f8..0d11f8520 100644 --- a/app/models/samples_report.rb +++ b/app/models/samples_report.rb @@ -70,7 +70,7 @@ def calculate_lod_and_lob def target_batch # The target batch for this box is the batch of any sample which distractor is false or null - samples_report_samples.joins(:sample).where("samples.distractor IS NULL OR samples.distractor = false").first.sample.batch + samples_report_samples.joins(:sample).find_by("samples.distractor IS NULL OR samples.distractor = 'false'").sample.batch end private