소스 검색

fix filter

David 10 년 전
부모
커밋
7e4a73ac57
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      db.py

+ 1 - 1
db.py

@@ -55,7 +55,7 @@ class db():
             #    {"url": {"$regex":".*%s.*"%filter["site"], "$options": 'i' }}
             #    ]
 
-        if "minweight" not in filter or not isinstance(filter["minweight"],int):
+        if "minweight" not in filter or not filter["minweight"].isdigit():
             filter["minweight"]=1
 
         if "category" not in filter or filter["category"]=="-1":