Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroradusky committed Jul 7, 2023
1 parent 3b1f185 commit 613890a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/samples_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613890a

Please sign in to comment.