Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Attempt to fix problem I inadvertently introduced when allowing a sta…
Browse files Browse the repository at this point in the history
…rt time for the scraper instead of just a date.
  • Loading branch information
floehopper committed May 4, 2010
1 parent d046528 commit 5397deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/timetable_scraper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ class TimetableScraper
}
}

def scrape(line, time, delay_average = 2, delay_variation = 2)
def scrape(line, start_time, delay_average = 2, delay_variation = 2)
ORIGINS_VS_DESTINATIONS[line].each do |origins, destinations|
origins.each do |origin|
destinations.each do |destination|
time = start_time
finished = false
while !finished
planner = NationalRailEnquiries::JourneyPlanner.new
Expand Down

0 comments on commit 5397deb

Please sign in to comment.