v1.8.26: fix qdrant hostname in memory count

This commit is contained in:
2026-05-28 22:18:47 +00:00
parent 1c142668cf
commit c6deb42adb
11 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -315,7 +315,7 @@ def stats():
cur.execute("SELECT COUNT(*) FROM books"); books = cur.fetchone()[0]
cur.execute("SELECT COUNT(*) FROM conversations"); convos = cur.fetchone()[0]
try:
mi = httpx.get("http://qdrant:6333/collections/mem0_memory", timeout=2).json()
mi = httpx.get("http://172.16.2.1:6333/collections/mem0_memory", timeout=2).json()
memories = mi.get("result",{}).get("points_count",0)
except: memories = 0
except Exception as e:
@@ -459,7 +459,7 @@ def admin_overview(_=Depends(require_admin)):
cur.execute("SELECT COUNT(*) as total FROM books"); books = cur.fetchone()["total"]
cur.execute("SELECT COUNT(*) as total FROM conversations"); convos = cur.fetchone()["total"]
try:
mi = httpx.get("http://qdrant:6333/collections/mem0_memory", timeout=2).json()
mi = httpx.get("http://172.16.2.1:6333/collections/mem0_memory", timeout=2).json()
memories = mi.get("result",{}).get("points_count",0)
except: memories = 0
cur.execute("SELECT COUNT(DISTINCT session_id) as total FROM conversations"); unique_users = cur.fetchone()["total"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.