use static input.json

This commit is contained in:
Vri 🌈 2023-05-10 21:42:03 +02:00
parent 72ba7c51e1
commit 47a2e8b410
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -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