reduce checking

This commit is contained in:
gowthaman.b 2023-06-19 17:52:27 +05:30
parent bb8800d47f
commit efb2ea8a88

View File

@ -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: