From 8b8eb6abbbb31e1e340512945a87fedde54e416a Mon Sep 17 00:00:00 2001 From: Godwin Date: Sat, 12 Jul 2014 13:12:54 -0600 Subject: [PATCH] Fixed attribution issue --- lib/tasks/migrate.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/migrate.rake b/lib/tasks/migrate.rake index 9648d29..d96461f 100644 --- a/lib/tasks/migrate.rake +++ b/lib/tasks/migrate.rake @@ -269,7 +269,8 @@ namespace :migrate do if i >= $panoramios[location] params["remote_#{column.to_s}_url".to_sym] = img['photo_file_url'] params[column.to_sym] = img['photo_file_url'].gsub(/^.*\/(.*)$/, '\1') - params[:cover_attribution_id] = img['owner_id'] + params[:cover_attribution_id] = img['photo_id'] + params[:cover_attribution_user_id] = img['owner_id'] params[:cover_attribution_name] = img['owner_name'] params[:cover_attribution_src] = 'panoramio' return params