|
@@ -33,6 +33,10 @@ class db():
|
|
|
if db_filter["scrap_date"]=={}:
|
|
if db_filter["scrap_date"]=={}:
|
|
|
del db_filter["scrap_date"]
|
|
del db_filter["scrap_date"]
|
|
|
|
|
|
|
|
|
|
+ if "title" in filter and filter["title"] != "":
|
|
|
|
|
+ filter["title"]=filter["title"].replace("(","\(").replace(")","\)")
|
|
|
|
|
+ db_filter["title"]={"$regex":".*%s.*"%filter["title"], "$options": 'i'}
|
|
|
|
|
+
|
|
|
if "site" in filter and filter["site"] != "":
|
|
if "site" in filter and filter["site"] != "":
|
|
|
filter["site"]=filter["site"].replace("(","\(").replace(")","\)")
|
|
filter["site"]=filter["site"].replace("(","\(").replace(")","\)")
|
|
|
db_filter["source_name"]={"$regex":".*%s.*"%filter["site"], "$options": 'i'}
|
|
db_filter["source_name"]={"$regex":".*%s.*"%filter["site"], "$options": 'i'}
|