reduce checking
This commit is contained in:
parent
bb8800d47f
commit
efb2ea8a88
1
main.py
1
main.py
@ -59,6 +59,7 @@ class DBConn:
|
|||||||
# there might be a scenario that new cols might appear at a later stage, if so,
|
# there might be a scenario that new cols might appear at a later stage, if so,
|
||||||
# we shall accommodate by adding it to the database
|
# we shall accommodate by adding it to the database
|
||||||
tbl_cols = self.table_mapping[tbl]
|
tbl_cols = self.table_mapping[tbl]
|
||||||
|
if len(tbl_cols) < len(col_names):
|
||||||
not_found = []
|
not_found = []
|
||||||
for col in col_names:
|
for col in col_names:
|
||||||
if col not in tbl_cols:
|
if col not in tbl_cols:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user