Commit 37b1dab5 by Owo Sugiana

Bug fixed saat tidak ada tabel inquiry

1 parent e6979b69
......@@ -104,6 +104,8 @@ class App(BaseApp):
super().__init__(argv)
if not self.pid:
return
self.set_other_db()
if not self.h2h_session:
d = Doc()
self.iso_inquiry_orm = d.iso_inquiry_model
try:
......@@ -119,7 +121,6 @@ class App(BaseApp):
self.Sppt = self.models.Sppt
self.base_q_sppt = self.prod_session.query(self.Sppt)
self.nip_pospbb = self.conf.get('nip_pospbb')
self.set_other_db()
def set_other_db(self):
if 'h2h_db_url' in self.conf:
......@@ -190,6 +191,8 @@ class App(BaseApp):
self.log.warning(msg)
def get_iso_v1(self, psppt):
if self.h2h_session:
return
row = self.get_iso_row(psppt)
if not row:
self.warning_date(psppt)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!