view · edit · sidebar · attach · print · history

20120111-check-update_bsv-update-update_analysis-remove-ext-analysisparse-debug-mail_patinfo-fix-oddb2tdat

<< Masa.20120112-delete-old-migel-fix-oddb2tdat-fix-pointer-link-oddb_org-check-sbsm-rockit | Index | Masa.20120110-rescue-invalid-value-migel-debug-encoding-error-narcotics-change-analysis-view-oddb_org >>


  1. Check bottle neck of update_bsv
  2. Check why update_bsv does not send an email from import_daily
  3. Rescue Invalid InvoiceItem during mail_patinfo_invoices
  4. Fix oddb2tdat
  5. How to set RUBYLIB environment variable

Commits

Check bottle neck of update_bsv

Note

  • Parsing Preparation.xml takes long time
  • Should check rexml/parsers/streamparser.rb in more carefully

suspend

Check why update_bsv does not send an email from import_daily

Note

  • Check log/oddb/debug/2012/01.log
  • Net::SMTP.start stops in src/util/log.rb
  • update_bsv is finished, just stopping sending email

suspend

Rescue Invalid InvoiceItem during mail_patinfo_invoices

Error (mail_patinfo_invoices)

Error: NoMethodError
Message: undefined method `time' for #<ODDB::LimitationText:0x00000027145bc8>
Backtrace:
/var/www/oddb.org/src/util/language.rb:45:in `method_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba/stub.rb:112:in
`method_missing'
/var/www/oddb.org/src/plugin/info_invoicer.rb:302:in `block in slate_items'
/var/www/oddb.org/src/plugin/info_invoicer.rb:301:in `each'
/var/www/oddb.org/src/plugin/info_invoicer.rb:301:in `sort_by'
/var/www/oddb.org/src/plugin/info_invoicer.rb:301:in `slate_items'
/var/www/oddb.org/src/plugin/info_invoicer.rb:100:in `all_items'

Check data on bin/admin

ch.oddb> slate(:patinfo).items.values.length
-> 1905
ch.oddb> slate(:patinfo).items.values.select{|i| i.is_a?(ODDB::InvoiceItem)}.length
-> 1905
ch.oddb> slate(:patinfo).items.values.select{|i| i.respond_to?(:time)}.length
-> 1904
ch.oddb> slate(:patinfo).items.values.select{|i| !i.respond_to?(:time)}.first.class
-> ODDB::InvoiceItem
ch.oddb> slate(:patinfo).items.values.select{|i| !i.respond_to?(:time)}.first.pointer
-> :!registration,60603!sequence,01!package,001!sl_entry!limitation_text.

Delete the invalid invoice item from bin/admin

ch.oddb> slate(:patinfo).items.values.select{|i| !i.respond_to?(:time)}.first.odba_id
-> 28416291
ch.oddb> slate(:patinfo).items.values.select{|i| !i.respond_to?(:time)}.first.oid
-> 28416291
ch.oddb> slate(:patinfo).items.delete(28416291)
-> 07.13.30.: Desensibilisierungslösungen

Kostenübernahme nur nach vorgängiger allergologischer Abklärung.
ch.oddb> slate(:patinfo).items.odba_isolated_store
-> Hash
ch.oddb> slate(:patinfo).items.values.select{|i| !i.respond_to?(:time)}.length
-> 0

No commits

  • It should run tomorrow

Fix oddb2tdat

oddb2tdat needs the following updates:

073 - 073

1 = SL (Q)
2 = LPPV (V)

anything else

3 = hors list (No SL, should be 3 not 0)

The price needs to be filled up to 6 digits with leading 00, no "." in
the price please.

Commit

How to set RUBYLIB environment variable

  1. write some file under /etc/env.d/
  2. sudo env-update && source /etc/profile

Refer to http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5

view · edit · sidebar · attach · print · history
Page last modified on January 11, 2012, at 04:55 PM