diff options
author | Jantso Porali <jantso.porali@gmail.com> | 2017-04-10 12:49:34 +0200 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-10 12:49:34 +0200 |
commit | e30bbb1cb097ded7db59e905287f85f9f2b5d1b8 (patch) | |
tree | 9450cd661728ec2ff93cea18928af9704efbcbd9 /app/workers | |
parent | 8bdf02812c3b4fb9c212dc96a8ae17ff7cdba253 (diff) |
Fix for Import issue from URL (#1416)
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/import_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/import_worker.rb b/app/workers/import_worker.rb index d5a33cada..ad4f1b004 100644 --- a/app/workers/import_worker.rb +++ b/app/workers/import_worker.rb @@ -25,7 +25,7 @@ class ImportWorker def process_blocks(import) from_account = import.account - CSV.foreach(import.data.path) do |row| + CSV.new(open(import.data.url)).each do |row| next if row.size != 1 begin @@ -41,7 +41,7 @@ class ImportWorker def process_follows(import) from_account = import.account - CSV.foreach(import.data.path) do |row| + CSV.new(open(import.data.url)).each do |row| next if row.size != 1 begin |