lib/enop/enop.rb in enop-0.1.5 vs lib/enop/enop.rb in enop-0.1.6

- old
+ new

@@ -122,10 +122,12 @@ end nbinfo = @notebookinfo.new( notebook_name , stack_name , notebook.defaultNotebook , notebookCounts , tagcount ) # CSVファイルへ追加(自動的に出力) register_notebook( nbinfo.stack , nbinfo ) # dbへの登録 - db_add( nbinfo.stack , nbinfo.name , nbinfo.count , nbinfo.tags.size ) + count = nbinfo.count + count ||= 0 + db_add( nbinfo.stack , nbinfo.name , count , nbinfo.tags.size ) # p notebook memo[:defaultNotebook] = nbinfo if nbinfo.defaultNotebook memo[:nbinfo] << nbinfo end