mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-01-22 21:48:00 +01:00
8 lines
221 B
Ruby
8 lines
221 B
Ruby
desc 'Import Paper records from setup importers'
|
|
task import_papers: :environment do
|
|
require 'open-uri'
|
|
Importer.all.each do |importer|
|
|
uri = URI.parse(importer.url)
|
|
Paper.import_from_json(uri.read)
|
|
end
|
|
end
|