Skip to content

Commit

Permalink
Fix reversed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
equivalentideas committed Feb 5, 2018
1 parent 1c7020e commit 483d57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -21,7 +21,7 @@ def web_archive(url)

# FOR EACH IN THE TIMEMAP
archive_times.each do |archive_timestamp|
return if (ScraperWiki.select("archive_timestamp from data where archive_timestamp='#{archive_timestamp}'").empty? rescue false)
return unless (ScraperWiki.select("archive_timestamp from data where archive_timestamp='#{archive_timestamp}'").empty? rescue true)
puts "Getting archived search data from #{archived_search_url(archive_timestamp)}"
archived_search_data = JSON.parse(
Net::HTTP.get(URI(archived_search_url(archive_timestamp)))
Expand Down

0 comments on commit 483d57d

Please sign in to comment.