From 637b41ec6098a350f4d1b81b7d4d8a2437a48bd8 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 19 Jan 2025 19:51:25 -0500 Subject: [PATCH 1/2] Fix dictionary get --- app/classes/minecraft/mc_ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/minecraft/mc_ping.py b/app/classes/minecraft/mc_ping.py index df63ae01..a2c2ac67 100644 --- a/app/classes/minecraft/mc_ping.py +++ b/app/classes/minecraft/mc_ping.py @@ -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 From f44eddb1dae842b5366bfeebda05293a1afd4179 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Mon, 20 Jan 2025 01:39:11 +0000 Subject: [PATCH 2/2] Update changelog !824 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb3b8689..bcdec7c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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