Skip to content

Commit

Permalink
remove id regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
ondenman committed Jul 29, 2016
1 parent 48be09c commit 7d4a043
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def scrape_index_page_details_for(person)
image = person.css('div.col-md-4').css('a.links').css('img').attr('src')
deputat[:image] = "#{$base_url}#{image}"

deputat[:id] = "#{$base_url}/kk#{bio_page_uri}".tidy.split('/').last
deputat[:id] = generate_id_from("#{$base_url}/kk#{bio_page_uri}".tidy.split('/').last)

deputat
end
Expand Down Expand Up @@ -87,7 +87,6 @@ def generate_id_from(str)
person[:website__kk] = page
person[:term] = '6'
person[:source] = 'http://www.parlam.kz/en/mazhilis/General/Deputats'
person[:id] = generate_id_from('#{name}')
person
end

Expand Down

0 comments on commit 7d4a043

Please sign in to comment.