From fcc02f29af1f649f45c16a0dbd08a51cddf94486 Mon Sep 17 00:00:00 2001 From: Hemna Date: Fri, 5 Apr 2024 15:24:11 -0400 Subject: [PATCH] Delete more stats from webchat This patch removes some more stats that the webchat ui doesn't need. --- aprsd/cmds/webchat.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/aprsd/cmds/webchat.py b/aprsd/cmds/webchat.py index d543ae8..c683e7b 100644 --- a/aprsd/cmds/webchat.py +++ b/aprsd/cmds/webchat.py @@ -462,19 +462,21 @@ def _stats(): # Webchat doesnt need these if "WatchList" in stats_dict: del stats_dict["WatchList"] - if "seen_list" in stats_dict: - del stats_dict["seen_list"] + if "SeenList" in stats_dict: + del stats_dict["SeenList"] if "APRSDThreadList" in stats_dict: del stats_dict["APRSDThreadList"] - # del stats_dict["email"] - # del stats_dict["plugins"] - # del stats_dict["messages"] + if "PacketList" in stats_dict: + del stats_dict["PacketList"] + if "EmailStats" in stats_dict: + del stats_dict["EmailStats"] + if "PluginManager" in stats_dict: + del stats_dict["PluginManager"] result = { "time": now.strftime(time_format), "stats": stats_dict, } - return result