mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
chore: handle unknowns when parsing records
This commit is contained in:
parent
e8bc5eb11a
commit
8c0faa3445
2 changed files with 4 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ class Gender < ApplicationRecord
|
|||
99
|
||||
when %r{^#*N/*A$}i
|
||||
99
|
||||
when /Unknown|99/i
|
||||
99
|
||||
else
|
||||
puts "************************************"
|
||||
puts "******** ERROR **********"
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ class Race < ApplicationRecord
|
|||
8
|
||||
when %r{^#*N/*A$}i
|
||||
nil
|
||||
when /Unknown|99/i
|
||||
99
|
||||
else
|
||||
puts "************************************"
|
||||
puts "******** ERROR **********"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue