Skip to content

Commit

Permalink
Add mandate start and end dates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Oct 3, 2017
1 parent 0cd1531 commit 4f9f0eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/member_section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ class MemberSection < Scraped::HTML
dates.last
end

field :mandate_start do
start_date
end

field :mandate_end do
end_date
end

field :email do
noko[5].css('a[href*="mailto:"]/@href').text.sub('mailto:','').tidy
end
Expand Down

0 comments on commit 4f9f0eb

Please sign in to comment.