Skip to content
Permalink
Browse files

Trying to fix chamber

  • Loading branch information
martinszy committed Jul 5, 2014
1 parent 873842f commit 3e8121fe9542b651f418e9f323bb392824e9337c
Showing with 2 additions and 1 deletion.
  1. +2 −1 scraper.rb
@@ -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";

0 comments on commit 3e8121f

Please sign in to comment.
You can’t perform that action at this time.