v1.8.26: fix qdrant hostname in memory count
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user