فهرست منبع

delete irrelevant comments

vnc-console 1 سال پیش
والد
کامیت
c3e85d0d0f
1فایلهای تغییر یافته به همراه5 افزوده شده و 11 حذف شده
  1. 5 11
      winmentor/db_to_df.py

+ 5 - 11
winmentor/db_to_df.py

@@ -13,10 +13,9 @@ class Dbtodf(object):
             self.__setattr__(key, [])
     
     def convert_oblig(self):
-        with Table(self.dbp) as table: # , Table(nbanks) as nbanks
+        with Table(self.dbp) as table:
             all_oblig = []
             for row in table:
-                # if row.TipDoc == 1 and row.Rest != 0:
                 self.Part.append(row.Part)
                 all_oblig.append(self.Part)
                 self.TipDoc.append(row.TipDoc)
@@ -40,10 +39,9 @@ class Dbtodf(object):
         return dict(zip(self.kwargs, all_oblig))
     
     def convert_obligf(self):
-        with Table(self.dbp) as table: # , Table(nbanks) as nbanks
+        with Table(self.dbp) as table:
             all_oblig = []
             for row in table:
-                # if row.TipDoc == 1 and row.Rest != 0:
                 self.Part.append(row.Part)
                 all_oblig.append(self.Part)
                 self.TipTranz.append(row.TipTranz)
@@ -67,10 +65,9 @@ class Dbtodf(object):
         return dict(zip(self.kwargs, all_oblig))
     
     def convert_parts(self):
-        with Table(self.dbp) as table: # , Table(nbanks) as nbanks
+        with Table(self.dbp) as table:
             all_nparts = []
             for row in table:
-                # if row.TipDoc == 1:
                 self.Cod.append(row.Cod)
                 all_nparts.append(self.Cod)
                 self.Denumire.append(row.Denumire)
@@ -80,10 +77,9 @@ class Dbtodf(object):
         return dict(zip(self.kwargs, all_nparts))
     
     def convert_cont(self):
-        with Table(self.dbp) as table: # , Table(nbanks) as nbanks
+        with Table(self.dbp) as table:
             all_conts = []
             for row in table:
-                # print(row.Simbol)
                 self.Cod.append(row.Cod)
                 all_conts.append(self.Cod)
                 self.Simbol.append(row.Simbol)
@@ -91,10 +87,9 @@ class Dbtodf(object):
         return dict(zip(self.kwargs, all_conts))
     
     def convert_mon(self):
-        with Table(self.dbp) as table: # , Table(nbanks) as nbanks
+        with Table(self.dbp) as table:
             all_mons = []
             for row in table:
-                # print(row.Simbol)
                 self.Cod.append(row.Cod)
                 all_mons.append(self.Cod)
                 self.Simbol.append(row.Simbol)
@@ -105,7 +100,6 @@ class Dbtodf(object):
 if __name__ == '__main__':
     oblig_headers = ['Part', 'TipDoc', 'Doc', 'NrDoc', 'DataDoc', 'Valoare', 'Rest']
     nparts_headres = ['Cod', 'Denumire', 'CodFiscal']
-    # args_ = {'one': '11', 'two': 12}
     dbtodf = Dbtodf(*oblig_headers)
     dbtodf.convert()
     print(dbtodf.Part)