Skip to content

Commit

Permalink
Show correct number of created item in oddb_product.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 18, 2015
1 parent a1c3737 commit 83c1192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oddb2xml/builder.rb
Expand Up @@ -463,7 +463,7 @@ def build_product
prepare_interactions
prepare_codes
add_missing_products_from_swissmedic
Oddb2xml.log "build_product #{@products.size} products"
Oddb2xml.log "build_product #{@products.size+@missing.size} products"
_builder = Nokogiri::XML::Builder.new(:encoding => 'utf-8') do |xml|
xml.doc.tag_suffix = @tag_suffix
datetime = Time.new.strftime('%FT%T%z')
Expand All @@ -472,6 +472,7 @@ def build_product
length = 0
@missing.each do |obj|
next if /^Q/i.match(obj[:atc])
length += 1
xml.PRD('DT' => '') {
seq = obj[:seq]
ean = obj[:ean].to_s
Expand Down

0 comments on commit 83c1192

Please sign in to comment.