remove unused changes

This commit is contained in:
RoyalOughtness 2025-07-16 17:00:43 -07:00 committed by GitHub
parent 8a24e4a03c
commit 0b2d523506
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 5 deletions

View file

@ -1,5 +1,4 @@
import cssutils
from app.utils.misc import SKIP_PREFIX
from bs4 import BeautifulSoup
from bs4.element import ResultSet, Tag
from cryptography.fernet import Fernet

View file

@ -11,8 +11,6 @@ from bs4 import BeautifulSoup as bsoup
from cryptography.fernet import Fernet
from flask import Request
SKIP_PREFIX = ['//www.', '//mobile.', '//m.']
ddg_favicon_site = 'http://icons.duckduckgo.com/ip2'
empty_gif = base64.b64decode(

View file

@ -1,6 +1,6 @@
from app.models.config import Config
from app.models.endpoint import Endpoint
from app.utils.misc import list_to_dict, SKIP_PREFIX
from app.utils.misc import list_to_dict
from bs4 import BeautifulSoup, NavigableString
import copy
from flask import current_app
@ -12,6 +12,7 @@ import re
import warnings
SKIP_ARGS = ['ref_src', 'utm']
SKIP_PREFIX = ['//www.', '//mobile.', '//m.']
GOOG_STATIC = 'www.gstatic.com'
G_M_LOGO_URL = 'https://www.gstatic.com/m/images/icons/googleg.gif'
GOOG_IMG = '/images/branding/searchlogo/1x/googlelogo'
@ -235,7 +236,6 @@ def get_site_alt(link: str, site_alts: dict = SITE_ALTS) -> str:
# If a scheme is specified, remove everything before the
# first occurence of it
link = f'{parsed_alt.scheme}{link.split(parsed_alt.scheme, 1)[-1]}'
break
return link