mirror of
https://github.com/searxng/searxng.git
synced 2026-07-31 20:31:31 +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
|
||||
about = {
|
||||
"website": "https://m.quark.cn/",
|
||||
"website": "https://quark.sm.cn/",
|
||||
"wikidata_id": "Q48816502",
|
||||
"use_official_api": False,
|
||||
"require_api_key": False,
|
||||
@@ -53,7 +53,7 @@ def request(query, params):
|
||||
|
||||
category_config = {
|
||||
'general': {
|
||||
'endpoint': 'https://m.quark.cn/s',
|
||||
'endpoint': 'https://quark.sm.cn/s',
|
||||
'params': {
|
||||
"q": query,
|
||||
"layout": "html",
|
||||
|
||||
@@ -1373,6 +1373,10 @@ def is_werkzeug_reload_active() -> bool:
|
||||
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/1616#issuecomment-1206137468
|
||||
|
||||
|
||||
Reference in New Issue
Block a user