Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Trying to fix chamber
Browse files Browse the repository at this point in the history
  • Loading branch information
martinszy committed Jul 5, 2014
1 parent 873842f commit 3e8121f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ def process
end

def get_info congressman
chamber = "senador";

organizations = String.new
if !congressman['memberships'].empty?
congressman_organization_id = congressman['memberships'].first['organization_id']
organizations = get_memberships congressman_organization_id

chamber = "senador";
congressman['memberships'].each { |member|
if member["role"] == "Diputado" then
chamber = "diputado";
Expand Down

0 comments on commit 3e8121f

Please sign in to comment.