Skip to content

Commit

Permalink
Fixes PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroradusky committed Jul 7, 2023
1 parent 613890a commit e203a0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions app/controllers/nih_tables_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class NihTablesController < ApplicationController
def show
@samples_report = SamplesReport.find(params[:id])
@target_batch = @samples_report.target_batch
return unless authorize_resource(@samples_report, READ_SAMPLES_REPORT)

zip_data = create_zip_file
Expand Down
6 changes: 3 additions & 3 deletions app/views/samples_reports/nih_challenge.csv.csvbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ csv << [
"#{sample.box.purpose}-panel",
'inactivated virus',
'SARS-CoV-2',
@samples_report.target_batch.target_organism_taxonomy_id,
@samples_report.target_batch.pango_lineage,
@samples_report.target_batch.who_label,
@target_batch.target_organism_taxonomy_id,
@target_batch.pango_lineage,
@target_batch.who_label,
@samples_report.threshold,
'copies/ml',
params[:true_positives],
Expand Down
8 changes: 4 additions & 4 deletions app/views/samples_reports/nih_lod.csv.csvbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ csv << [
"#{sample.box.purpose}-panel",
'inactivated virus',
'SARS-CoV-2',
@samples_report.target_batch.target_organism_taxonomy_id,
@samples_report.target_batch.pango_lineage,
@samples_report.target_batch.who_label,
@target_batch.target_organism_taxonomy_id,
@target_batch.pango_lineage,
@target_batch.who_label,
@samples_report.lob,
nil,
@samples_report.lod,
@samples_report.target_batch.reference_gene,
@target_batch.reference_gene,
nil,
nil,
"90",
Expand Down

0 comments on commit e203a0b

Please sign in to comment.