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