Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff1b1443 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

fix lint and pep issues

parent f2fc86f4
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ time_range_dict = {'day': 'd',
                   'month': 'm',
                   'year': 'y'}


# match query's language to a region code that duckduckgo will accept
def get_region_code(lang, lang_list=None):
    if lang == 'all':
@@ -64,10 +65,6 @@ def get_region_code(lang, lang_list=None):
    # country code goes first
    return lang_parts[1].lower() + '-' + lang_parts[0].lower()

def get_vqd(query):
    resp = httpx.get(f"https://duckduckgo.com/?q={query}&ia=web")
    resp = re.findall(VQD_REGEX, resp.text)
    return resp[0]

def get_vqd(query):
    resp = httpx.get(f"https://duckduckgo.com/?q={query}&ia=web")