Skip to content

Commit

Permalink
chore: Removed commented out lines of possible fields
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsadam committed Jan 16, 2024
1 parent 4e5d77d commit eb24a15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/projects/samples_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def template
when '1'
%w[WGS_id country earliest_date]
when '2'
%w[WGS_id NCBI_ACCESSION country patient_sex earliest_date]
%w[WGS_id NCBI_ACCESSION country patient_age patient_sex earliest_date]
else
%w[]
end
Expand Down
5 changes: 2 additions & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ def fake_metadata
'age' => Faker::Number.between(from: 1, to: 100),
'onset' => Faker::Date.between(from: 2.years.ago.to_s, to: Time.zone.today),
'earliest_date' => Faker::Date.between(from: 2.years.ago.to_s, to: Time.zone.today),
'patient_sex' => Faker::Gender.binary_type
# SourceState species subspecies serovar patient_sex patient_age
# source_type source_site TypeDetails Event ID Outbreak FNC travel comments Category
'patient_sex' => Faker::Gender.binary_type,
'patient_age' => Faker::Number.between(from: 1, to: 100)
}
end

Expand Down

0 comments on commit eb24a15

Please sign in to comment.