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