🚧 Update topic explorer

This commit is contained in:
Jonas Bengtsson
2026-09-20 17:57:05 +02:00
parent 6385a27411
commit b8e7c14368
10 changed files with 1344 additions and 3888 deletions
+3 -1
View File
@@ -256,6 +256,7 @@ def client(db_session, monkeypatch):
self.id = id
self.username = username
self.topic_filter = topic_filter
self.buffer = [] # list of message dicts, index-tagged
class FakeSessions:
def __init__(self):
@@ -281,7 +282,8 @@ def client(db_session, monkeypatch):
monkeypatch.setattr(explorer_module, "sessions", fake_sessions)
def fake_messages_since(session_id, index):
return []
session = fake_sessions.get(session_id)
return [dict(m) for m in session.buffer if m["index"] > index]
def fake_list_retained(max_results=200, timeout=3.0):
return [