Skip to content

Commit

Permalink
Fix name of priority field
Browse files Browse the repository at this point in the history
Is called PRIORITY_STATUS in the data
  • Loading branch information
jszwedko committed Aug 21, 2018
1 parent 5774ac8 commit 584935c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/thing_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def normalize_thing(csv_thing)
lng: lng,
type: csv_thing['Drain_Type'],
system_use_code: csv_thing['System_Use_Code'],
priority: csv_thing['Priority'] == '1',
priority: csv_thing['PRIORITY_STATUS'] == '1',
}
end

Expand Down
2 changes: 1 addition & 1 deletion test/lib/thing_importer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ThingImporterTest < ActiveSupport::TestCase

fake_url = 'http://sf-drain-data.org'
fake_response = [
'PUC_Maximo_Asset_ID,Drain_Type,System_Use_Code,Location,Priority',
'PUC_Maximo_Asset_ID,Drain_Type,System_Use_Code,Location,PRIORITY_STATUS',
'N-3,Catch Basin Drain,ABC,"(42.38, -71.07)",1',
'N-10,Catch Basin Drain,DEF,"(36.75, -121.40)",0',
'N-11,Catch Basin Drain,ABC,"(37.75, -122.40)",1',
Expand Down

0 comments on commit 584935c

Please sign in to comment.