Commit 7983025f authored by Michael Witrant's avatar Michael Witrant

save amendments

parent 33e10ae4
......@@ -48,6 +48,8 @@ end
puts "#{amend_nodes.length} amendments found"
amendments = []
amend_nodes.each do |nodes|
amend_text = nodes.map(&:text).join
debug amend_text: amend_text
......@@ -58,7 +60,12 @@ amend_nodes.each do |nodes|
doc_amend = amend_doc.xpath("//DocAmend").first.text
article = amend_doc.xpath("//Article").first.text
debug num_am: num_am, doc_amend: doc_amend, article: article
amendment = {
num_am: num_am,
doc_amend: doc_amend,
article: article,
}
debug amendment
amendments << amendment
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment