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