Browse Source

Adding parameter pars to updateAndValidate entry to be able to compare entry against setup in pars

Andrej 1 week ago
parent
commit
3c6d89fd00
1 changed files with 2 additions and 2 deletions
  1. 2 2
      importXLSX.py

+ 2 - 2
importXLSX.py

@@ -317,7 +317,7 @@ def convertLookup(xlsColumnName):
 def rowValid(df,r):
    return True
 
-def updateAndValidateEntry(e):
+def updateAndValidateEntry(e,pars):
    return True
 
 def importData(pars,filename,getId=getId,modify=modify,\
@@ -425,7 +425,7 @@ def importData(pars,filename,getId=getId,modify=modify,\
       except KeyError:
          pass
       
-      if not updateAndValidateEntry(entry):
+      if not updateAndValidateEntry(entry,pars):
          continue
 
       entries.append(entry)