|
|
@ -25,7 +25,7 @@ class ImportWorker |
|
|
|
def process_blocks(import) |
|
|
|
def process_blocks(import) |
|
|
|
from_account = import.account |
|
|
|
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 |
|
|
|
next if row.size != 1 |
|
|
|
|
|
|
|
|
|
|
|
begin |
|
|
|
begin |
|
|
@ -41,7 +41,7 @@ class ImportWorker |
|
|
|
def process_follows(import) |
|
|
|
def process_follows(import) |
|
|
|
from_account = import.account |
|
|
|
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 |
|
|
|
next if row.size != 1 |
|
|
|
|
|
|
|
|
|
|
|
begin |
|
|
|
begin |
|
|
|