Remove '*' Prefix from joke languages

Co-authored-by: Andrew McManus <amcmanus@arcadiatech.org>
This commit is contained in:
Zedifus 2022-03-04 23:38:36 +00:00
parent a76833b409
commit a3656536b5

View File

@ -301,7 +301,12 @@ class PanelHandler(BaseHandler):
timestamp = credits_dict["lastUpdate"] / 1000.0 timestamp = credits_dict["lastUpdate"] / 1000.0
page_data["patrons"] = credits_dict["patrons"] page_data["patrons"] = credits_dict["patrons"]
page_data["staff"] = credits_dict["staff"] 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: if timestamp == 0:
page_data["lastUpdate"] = '😿' page_data["lastUpdate"] = '😿'
else: else: