Browse Source

Adding code-word NONE to variable names to be excluded from filtering; previously, literal value NONE would be sought

Andrej Studen@Labkey-KNM 1 year ago
parent
commit
fa3491d025
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pythonScripts/config.py

+ 2 - 1
pythonScripts/config.py

@@ -50,7 +50,8 @@ def getFilter(xconfig):
    for f in fields:
       try:
          row[f]=xconfig[f]
-         qfilter.append(fields[f](row,xconfig))
+         if xconfig[f]!='NONE':
+            qfilter.append(fields[f](row,xconfig))
       except KeyError:
          continue
    return qfilter