mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -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
|
99
|
||||||
when %r{^#*N/*A$}i
|
when %r{^#*N/*A$}i
|
||||||
99
|
99
|
||||||
|
when /Unknown|99/i
|
||||||
|
99
|
||||||
else
|
else
|
||||||
puts "************************************"
|
puts "************************************"
|
||||||
puts "******** ERROR **********"
|
puts "******** ERROR **********"
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ class Race < ApplicationRecord
|
||||||
8
|
8
|
||||||
when %r{^#*N/*A$}i
|
when %r{^#*N/*A$}i
|
||||||
nil
|
nil
|
||||||
|
when /Unknown|99/i
|
||||||
|
99
|
||||||
else
|
else
|
||||||
puts "************************************"
|
puts "************************************"
|
||||||
puts "******** ERROR **********"
|
puts "******** ERROR **********"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue