Skip to content

Commit

Permalink
The council is showing slashes rather than dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jul 29, 2020
1 parent 8cc8ec0 commit 9495b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.rb
Expand Up @@ -23,7 +23,8 @@ def get_page(agent, from:, to:, page_offset:, page_limit:)
result["data"].each do |a|
council_reference = a["appNo"]
record = {
"council_reference" => council_reference,
# Converting - to / to match what the council is showing
"council_reference" => council_reference.gsub("-", "/"),
"address" => a["propertyFmtAddress"] + ", QLD",
"description" => a["description"],
"info_url" => "#{root_url}#/applications/#{council_reference}",
Expand Down

0 comments on commit 9495b90

Please sign in to comment.