Added check for WHOOGLE_MINIMAL
This commit is contained in:
parent
02c1aa2917
commit
6e361c5751
|
@ -7,6 +7,7 @@ from flask import render_template
|
||||||
import re
|
import re
|
||||||
import urllib.parse as urlparse
|
import urllib.parse as urlparse
|
||||||
from urllib.parse import parse_qs
|
from urllib.parse import parse_qs
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def extract_q(q_str: str, href: str) -> str:
|
def extract_q(q_str: str, href: str) -> str:
|
||||||
|
@ -186,7 +187,8 @@ class Filter:
|
||||||
# Loop through results and check for the number of child divs in each
|
# Loop through results and check for the number of child divs in each
|
||||||
for result in self.main_divs:
|
for result in self.main_divs:
|
||||||
result_children = pull_child_divs(result)
|
result_children = pull_child_divs(result)
|
||||||
if WHOOGLE_MINIMAL=="1":
|
WHOOGL
|
||||||
|
if str(os.getenv('WHOOGLE_MINIMAL',0))=="1":
|
||||||
if len(result_children) in (1,3):
|
if len(result_children) in (1,3):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user