From 47a2e8b410c08effc8410127e719279df036ad59 Mon Sep 17 00:00:00 2001 From: Vri Date: Wed, 10 May 2023 21:42:03 +0200 Subject: [PATCH] use static input.json --- lib/tasks/import_papers.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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