From a3656536b52f3489c1c0efa3c7648251f185f9ab Mon Sep 17 00:00:00 2001 From: Zedifus Date: Fri, 4 Mar 2022 23:38:36 +0000 Subject: [PATCH] Remove '*' Prefix from joke languages Co-authored-by: Andrew McManus --- app/classes/web/panel_handler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index f88e1b7b..3de05375 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -301,7 +301,12 @@ class PanelHandler(BaseHandler): timestamp = credits_dict["lastUpdate"] / 1000.0 page_data["patrons"] = credits_dict["patrons"] page_data["staff"] = credits_dict["staff"] - page_data["translations"] = credits_dict["translations"] + + # Filter Language keys to exclude joke prefix '*' + clean_dict = {user.replace('*', ''): translation for user, translation in credits_dict['translations'].items()} + page_data["translations"] = clean_dict + + # 0 Defines if we are using local credits file andd displays sadcat. if timestamp == 0: page_data["lastUpdate"] = '😿' else: