Skip to content

Commit

Permalink
Fixes PR reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroradusky committed Apr 18, 2024
1 parent b06c9dd commit 9441892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/documents/label_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def render_sample_details(sample)
text_lines [
"I.N. #{sample.isolate_name}".truncate(22),
"I.M. #{sample.inactivation_method}".truncate(22),
"P.D. #{sample.date_produced == "Blinded" ? "Blinded" : sample.date_produced.strftime("%m/%d/%Y")}",
"P.D. #{sample.blinded_attribute?(:date_produced) ? sample.date_produced : sample.date_produced.strftime("%m/%d/%Y")}",
], leading: -0.5
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/boxes/inventory.csv.csvbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ csv << [
sample.virus_lineage,
sample.replicate,
sample.concentration,
sample.date_produced == "Blinded" ? "Blinded" : sample.date_produced.to_date,
sample.blinded_attribute?(:date_produced) ? sample.date_produced : sample.date_produced.to_date,
sample.inactivation_method,
sample.media,
]
Expand Down

0 comments on commit 9441892

Please sign in to comment.