mirror of
https://github.com/searxng/searxng.git
synced 2026-08-14 11:11:27 +00:00
Compare commits
4 Commits
c6c6d3027c
...
33729439c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33729439c5 | ||
|
|
20ce88a274 | ||
|
|
8595e467ce | ||
|
|
3392beb914 |
@@ -11,7 +11,7 @@ from searx.exceptions import SearxEngineAPIException, SearxEngineCaptchaExceptio
|
|||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
about = {
|
about = {
|
||||||
"website": "https://m.quark.cn/",
|
"website": "https://quark.sm.cn/",
|
||||||
"wikidata_id": "Q48816502",
|
"wikidata_id": "Q48816502",
|
||||||
"use_official_api": False,
|
"use_official_api": False,
|
||||||
"require_api_key": False,
|
"require_api_key": False,
|
||||||
@@ -53,7 +53,7 @@ def request(query, params):
|
|||||||
|
|
||||||
category_config = {
|
category_config = {
|
||||||
'general': {
|
'general': {
|
||||||
'endpoint': 'https://m.quark.cn/s',
|
'endpoint': 'https://quark.sm.cn/s',
|
||||||
'params': {
|
'params': {
|
||||||
"q": query,
|
"q": query,
|
||||||
"layout": "html",
|
"layout": "html",
|
||||||
|
|||||||
@@ -1373,6 +1373,10 @@ def is_werkzeug_reload_active() -> bool:
|
|||||||
https://werkzeug.palletsprojects.com/en/stable/serving/#werkzeug.serving.run_simple
|
https://werkzeug.palletsprojects.com/en/stable/serving/#werkzeug.serving.run_simple
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if "uwsgi" in sys.argv:
|
||||||
|
# server was launched by uWSGI
|
||||||
|
return False
|
||||||
|
|
||||||
# https://github.com/searxng/searxng/pull/1656#issuecomment-1214198941
|
# https://github.com/searxng/searxng/pull/1656#issuecomment-1214198941
|
||||||
# https://github.com/searxng/searxng/pull/1616#issuecomment-1206137468
|
# https://github.com/searxng/searxng/pull/1616#issuecomment-1206137468
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user