<< Masa.20120105-oddb2tdat-rpdf2txt-update_narcotics-ruby193-oddb_org | Index | Masa.20120103-fix-importer-exporter-ruby193-oddb_org >>
Note: If you delete Packungen-latest.xls from data/xls then make sure to copy the file [-2] to the latest position so that the Swissmedic-Log for export_ouwerkerk does not get lost.
Swissmedic-Diff needs a file Packungen-latest.xls to log against.
How to update
$ /usr/local/bin/ruby extconf.rb $ make
copy rwv2.so to /usr/local/lib64/ruby/site_ruby/1.9.1/x86_64-linux/
Problem (export_ouwerkerk)
Note
ch.oddb> log_group(:swissmedic).latest.date -> 2011-11-01 ch.oddb> log_group(:swissmedic).latest.change_flags.length -> 7595 ch.oddb> log_group(:bsv_sl).latest.date -> 2012-01-01 ch.oddb> log_group(:bsv_sl).latest.change_flags.length -> 336
ch.oddb> log_group(:swissmedic).latest.date -> 2011-11-01 ch.oddb> log_group(:swissmedic).latest.change_flags.length -> 235 ch.oddb> log_group(:bsv_sl).latest.date -> 2011-12-01 ch.oddb> log_group(:bsv_sl).latest.change_flags.length -> 142
ch.oddb> log_group(:swissmedic).logs.keys.sort.length -> 46 ch.oddb> log_group(:swissmedic).logs.keys.sort[44] -> 2011-10-01 ch.oddb> key = log_group(:swissmedic).logs.keys.sort[44];flags=log_group(:swissmedic).logs[key].change_flags;open("/home/masa/work/reg_flag_201110.dat","w"){|out| flags.each{|pt, flgs| out.print pt,"\t",flgs.join(","), "\n"}}