Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Display search engine names correctly in metrics dashboard

LearningCircuit3ce8e25f7c84
diff --git a/src/local_deep_research/web/auth/routes.py b/src/local_deep_research/web/auth/routes.py
index 7384f6cf65..b4ce6e8e9d 100644
--- a/src/local_deep_research/web/auth/routes.py
+++ b/src/local_deep_research/web/auth/routes.py
@@ -280,10 +280,6 @@ def register():
logger.exception(f"Could not update scheduler on registration: {e}")
logger.info(f"New user registered: {username}")
- flash(
- "Registration successful! Your encrypted database has been created.",
- "success",
- )
return redirect(url_for("index"))
diff --git a/src/local_deep_research/web/templates/pages/metrics.html b/src/local_deep_research/web/templates/pages/metrics.html
index f0e3778acd..e67a234985 100644
--- a/src/local_deep_research/web/templates/pages/metrics.html
+++ b/src/local_deep_research/web/templates/pages/metrics.html
@@ -1791,17 +1791,19 @@
const statusGrid = document.getElementById('engine-status-grid');
statusGrid.innerHTML = '';
- if (Object.keys(analytics.engine_stats).length === 0) {
+ if (!analytics.engine_stats || analytics.engine_stats.length === 0) {
statusGrid.innerHTML = '<div style="grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--text-secondary);"><i class="fas fa-clock fa-2x" style="margin-bottom: 1rem;"></i><p>No engine data yet</p><p style="font-size: 0.875rem;">Search engine metrics will appear after rate limiting occurs</p></div>';
} else {
- Object.entries(analytics.engine_stats).forEach(([engineType, stats]) => {
+ analytics.engine_stats.forEach((stats) => {
+ const engineName = stats.engine || 'Unknown Engine';
+ const displayName = engineName.replace('SearchEngine', '') || engineName;
const statusCard = document.createElement('div');
statusCard.className = 'metric-card';
statusCard.style.borderLeft = `4px solid ${getStatusColor(stats.status)}`;
statusCard.innerHTML = `
<div class="metric-header" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;">
- <h4 style="margin: 0; color: var(--text-primary);">${engineType.replace('SearchEngine', '')}</h4>
+ <h4 style="margin: 0; color: var(--text-primary);">${displayName}</h4>
<span class="status-badge" style="
background: ${getStatusColor(stats.status)};
color: white;