Merge branch 'staff/credits-update-leo' into 'dev'

Staff/credits update leo

See merge request crafty-controller/crafty-commander!184
This commit is contained in:
Iain Powrie 2022-03-04 23:53:14 +00:00
commit 7f8960aed3
3 changed files with 14 additions and 1 deletions

View File

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

View File

@ -82,6 +82,14 @@
"tags": [ "Staff", [ "Developer", "https://gitlab.com/qub3d" ], "Wiki" ],
"blurb": "Hosts Minecraft servers for his weird friends, works for an IoT company as his dayjob. The 's' in IoT stands for 'secure'.",
"pic": "/static/assets/images/credits/qub3d.png"
},
{
"name": "DarthLeo",
"title": "Support Engineer",
"loc": "East Coast, US",
"tags": [ "Staff", null, "Discord" ],
"blurb": "Just a simple gamer.",
"pic": "/static/assets/images/credits/darthLeo.png"
}
],
"retired": [

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB