mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
improve "search existing issues from github" link
This commit is contained in:
parent
11fdc2f56a
commit
ecee56533c
2 changed files with 17 additions and 1 deletions
|
@ -1161,6 +1161,21 @@ def stats():
|
|||
reliability_order = 1 - reliability_order
|
||||
return (reliability_order, key, engine_stat['name'])
|
||||
|
||||
technical_report = []
|
||||
for error in engine_reliabilities.get(selected_engine_name, {}).get('errors', []):
|
||||
technical_report.append(
|
||||
f"\
|
||||
Error: {error['exception_classname'] or error['log_message']} \
|
||||
Parameters: {error['log_parameters']} \
|
||||
File name: {error['filename'] }:{ error['line_no'] } \
|
||||
Error Function: {error['function']} \
|
||||
Code: {error['code']} \
|
||||
".replace(
|
||||
' ' * 12, ''
|
||||
).strip()
|
||||
)
|
||||
technical_report = ' '.join(technical_report)
|
||||
|
||||
engine_stats['time'] = sorted(engine_stats['time'], reverse=reverse, key=get_key)
|
||||
return render(
|
||||
# fmt: off
|
||||
|
@ -1170,6 +1185,7 @@ def stats():
|
|||
engine_reliabilities = engine_reliabilities,
|
||||
selected_engine_name = selected_engine_name,
|
||||
searx_git_branch = GIT_BRANCH,
|
||||
technical_report = technical_report,
|
||||
# fmt: on
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue