mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 04:46:11 +01:00
Merge branch 'bugfix/mc-ping' into 'dev'
Fix dictionary get See merge request crafty-controller/crafty-4!824
This commit is contained in:
commit
436b68b8d3
@ -3,7 +3,7 @@
|
||||
### New features
|
||||
TBD
|
||||
### 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
|
||||
TBD
|
||||
### Lang
|
||||
|
@ -94,7 +94,7 @@ class Players(list):
|
||||
class Player:
|
||||
def __init__(self, data):
|
||||
self.id = data.get("id", "")
|
||||
self.name = data("name", "Anonymous")
|
||||
self.name = data.get("name", "Anonymous")
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user