From a13c342920e904a0ced6726aae4f14dc43a41cee Mon Sep 17 00:00:00 2001 From: Markus Freitag Date: Sat, 11 Jan 2020 17:57:04 +0100 Subject: [PATCH] Fix minor bugs --- minecraft_exporter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/minecraft_exporter.py b/minecraft_exporter.py index cba4564..6f5e2bc 100644 --- a/minecraft_exporter.py +++ b/minecraft_exporter.py @@ -76,9 +76,9 @@ class MinecraftCollector(object): json_file.close() counter = 0 for _, value in data['questProgress:9'].items(): - for _, uuid in value['tasks:9']['0:10']['completeUsers:9'].items(): - if uuid == player['uuid']: - counter++ + for _, u in value['tasks:9']['0:10']['completeUsers:9'].items(): + if u == uuid: + counter +=1 return counter def get_player_stats(self,uuid): @@ -99,7 +99,7 @@ class MinecraftCollector(object): count += 1 data["stat.advancements"] = count if self.questsEnabled: - data["quests_finished"] = get_player_quests_finished(uuid) + data["quests_finished"] = get_player_quests_finished(self,uuid) return data def update_metrics_for_player(self,uuid):