Updated import data with pages working
This commit is contained in:
parent
249644e72c
commit
a93945cd45
|
@ -251,6 +251,8 @@ class Admin::ImportDataController < OrbitBackendController
|
||||||
content: (cp_node>"content").text
|
content: (cp_node>"content").text
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@i = 0
|
||||||
if @pages.present?
|
if @pages.present?
|
||||||
@pages.each do |b|
|
@pages.each do |b|
|
||||||
|
|
||||||
|
@ -275,6 +277,8 @@ class Admin::ImportDataController < OrbitBackendController
|
||||||
else
|
else
|
||||||
@page.content = b[:content]
|
@page.content = b[:content]
|
||||||
end
|
end
|
||||||
|
@i += 1
|
||||||
|
Rails.logger.info"@@@@@@@@@@@@@@@@@@@@@@@@"+@i.inspect
|
||||||
@page.save
|
@page.save
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue