From 6e361c575106073ebbe158be8888027faa74d9b6 Mon Sep 17 00:00:00 2001 From: DUO Labs Date: Sun, 24 Oct 2021 16:43:12 -0400 Subject: [PATCH] Added check for WHOOGLE_MINIMAL --- app/filter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/filter.py b/app/filter.py index 8dbd32e..fd5ecf8 100644 --- a/app/filter.py +++ b/app/filter.py @@ -7,6 +7,7 @@ from flask import render_template import re import urllib.parse as urlparse from urllib.parse import parse_qs +import os 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 for result in self.main_divs: 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): continue else: