From ac2c3576a7cfa31da08750b907daa43b7b0147bf Mon Sep 17 00:00:00 2001 From: Eric Wagoner Date: Thu, 3 Sep 2026 12:03:32 -0400 Subject: [PATCH] The rollup seats the host A room's host takes the first seat by creating it; only the others leave join lines. Counting joins alone reported rooms full of nobody. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG --- deploy/wizwar-rollup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/wizwar-rollup.sh b/deploy/wizwar-rollup.sh index 6d481e4..95461ef 100755 --- a/deploy/wizwar-rollup.sh +++ b/deploy/wizwar-rollup.sh @@ -65,6 +65,8 @@ for f in glob.glob("/var/lib/wizwar/rooms/*.jsonl"): ct = datetime.datetime.fromisoformat(ca.replace("Z", "+00:00")).timestamp() if not (t0 <= ct < t1): continue new_rooms += 1 + # The host takes the first seat by creating; only others join. + if meta.get("hostId"): seats[meta["hostId"]] += 1 for line in fh: try: r = json.loads(line) except ValueError: continue