From f15dcaf545613868ddb1fdbc868d4385412fd459 Mon Sep 17 00:00:00 2001 From: Thomas Chick Date: Sat, 2 Nov 2024 17:04:28 +1100 Subject: [PATCH] fix message parsing bug with donation total --- zulip_bots/zulip_bots/pubbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/pubbot.py b/zulip_bots/zulip_bots/pubbot.py index 877279c..658791d 100644 --- a/zulip_bots/zulip_bots/pubbot.py +++ b/zulip_bots/zulip_bots/pubbot.py @@ -92,7 +92,7 @@ def main(conf_file, message_log_file, name=socket.gethostname()): log["message_time"] = message_time - if msg["c"] == "db_total": + if msg["c"].startswith("total"): log["type"] == "total" increase = None if total is None else msg["d"] - total log["increase"] = increase