Browse Source

Fixed attribution issue

development
Godwin 11 years ago
parent
commit
8b8eb6abbb
  1. 3
      lib/tasks/migrate.rake

3
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

Loading…
Cancel
Save