mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Replace Flask by Starlette (2/n)
This commit is contained in:
parent
78561ce7bb
commit
1a3c73cf6f
30 changed files with 994 additions and 2235 deletions
|
|
@ -10,7 +10,7 @@ from json import loads
|
|||
from urllib.parse import urlencode
|
||||
from functools import partial
|
||||
|
||||
from flask_babel import gettext
|
||||
from searx.i18n import gettext
|
||||
|
||||
from searx.data import OSM_KEYS_TAGS, CURRENCIES
|
||||
from searx.utils import searx_useragent
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"""
|
||||
|
||||
from json import loads
|
||||
from flask_babel import gettext
|
||||
from searx.i18n import gettext
|
||||
|
||||
# about
|
||||
about = {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
PubMed (Scholar publications)
|
||||
"""
|
||||
|
||||
from flask_babel import gettext
|
||||
from lxml import etree
|
||||
from datetime import datetime
|
||||
from urllib.parse import urlencode
|
||||
from searx.i18n import gettext
|
||||
from searx.network import get
|
||||
|
||||
# about
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ from datetime import (
|
|||
)
|
||||
from json import loads
|
||||
from urllib.parse import urlencode
|
||||
from flask_babel import gettext
|
||||
|
||||
from searx.i18n import gettext
|
||||
from searx.utils import match_language
|
||||
from searx.exceptions import SearxEngineAPIException
|
||||
from searx.network import raise_for_httperror
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue