Merge branch 'bugfix/mc-ping' into 'dev'

Fix dictionary get

See merge request crafty-controller/crafty-4!824
This commit is contained in:
Iain Powrie 2025-01-20 01:42:23 +00:00
commit 436b68b8d3
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
### New features ### New features
TBD TBD
### Bug fixes ### Bug fixes
TBD - Fix traceback on stats page for data missing data.get ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/824))
### Tweaks ### Tweaks
TBD TBD
### Lang ### Lang

View File

@ -94,7 +94,7 @@ class Players(list):
class Player: class Player:
def __init__(self, data): def __init__(self, data):
self.id = data.get("id", "") self.id = data.get("id", "")
self.name = data("name", "Anonymous") self.name = data.get("name", "Anonymous")
def __str__(self): def __str__(self):
return self.name return self.name