Skip to content

Commit

Permalink
rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtmtmtm committed May 10, 2017
1 parent 1bd2303 commit a456cb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'rubocop/rake_task'

RuboCop::RakeTask.new

task default: %w(rubocop)
task default: %w[rubocop]
2 changes: 1 addition & 1 deletion scraper.rb
Expand Up @@ -47,7 +47,7 @@ def scrape_mp(id)
data[:image] = URI.join(url, URI.escape(data[:image])).to_s unless data[:image].to_s.empty?
data[:party] = 'Independent' if data[:party].to_s == 'bitərəf'
# puts data
ScraperWiki.save_sqlite(%i(id term), data)
ScraperWiki.save_sqlite(%i[id term], data)
end

ScraperWiki.sqliteexecute('DELETE FROM data') rescue nil
Expand Down

0 comments on commit a456cb5

Please sign in to comment.