Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hedged in case ild committee ID remains in cSV

  • Loading branch information...
commit 66587a33c6beb6192a1e3fb8c9019a63840d9290 1 parent 78c5407
@konklone konklone authored
Showing with 9 additions and 7 deletions.
  1. +9 −7 data/load.rake
View
16 data/load.rake
@@ -234,15 +234,17 @@ def office_from_row(row, i, committees)
# in case remote committee data changed
committee = committees[committee_id]
- office.attributes = {
- :name => committee.name,
- :committee => {
- :id => committee_id,
+ if committee
+ office.attributes = {
:name => committee.name,
- :chamber => committee.chamber
+ :committee => {
+ :id => committee_id,
+ :name => committee.name,
+ :chamber => committee.chamber
+ }
}
- }
- office.save!
+ office.save!
+ end
else
committee = committees[committee_id]
Please sign in to comment.
Something went wrong with that request. Please try again.