소스 검색

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

Andrej Studen@Labkey-KNM 1 년 전
부모
커밋
fa3491d025
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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