Delete more stats from webchat

This patch removes some more stats that the webchat
ui doesn't need.
This commit is contained in:
Hemna 2024-04-05 15:24:11 -04:00
parent 0ca9072c97
commit fcc02f29af
1 changed files with 8 additions and 6 deletions

View File

@ -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