Skip to content

Commit

Permalink
Coerce IDs to 48..... format
Browse files Browse the repository at this point in the history
The old IDs were of this form, and although the site has changed in the
meantime to drop these, it's easier to return to these for now, until we
resolve various conflicts upstream.
  • Loading branch information
tmtmtmtm committed May 4, 2017
1 parent 8400ba7 commit a3d4f34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ def td
end

class MemberPage < Scraped::HTML
# The IDs before we ported to scraped were all of this form. The site
# has changed its layout, but for now maintain the same IDs.
field :id do
url.split('/').last
4800000 + url.split('/').last.to_i
end

field :name do
Expand Down

0 comments on commit a3d4f34

Please sign in to comment.