diff --git a/lib/tasks/import_papers.rake b/lib/tasks/import_papers.rake index 250197a..8a4d1f3 100644 --- a/lib/tasks/import_papers.rake +++ b/lib/tasks/import_papers.rake @@ -3,6 +3,6 @@ task import_papers: :environment do require 'open-uri' #OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE #api_key = Rails.application.config_for(:morph)['key'] - uri = URI.parse("https://joergreichert.de/srm/input.json") - Paper.import_from_json(uri.read) + input = File.read("input.json") + Paper.import_from_json(input) end