Fix minor bugs
This commit is contained in:
parent
63c45107d4
commit
a13c342920
1 changed files with 4 additions and 4 deletions
|
@ -76,9 +76,9 @@ class MinecraftCollector(object):
|
||||||
json_file.close()
|
json_file.close()
|
||||||
counter = 0
|
counter = 0
|
||||||
for _, value in data['questProgress:9'].items():
|
for _, value in data['questProgress:9'].items():
|
||||||
for _, uuid in value['tasks:9']['0:10']['completeUsers:9'].items():
|
for _, u in value['tasks:9']['0:10']['completeUsers:9'].items():
|
||||||
if uuid == player['uuid']:
|
if u == uuid:
|
||||||
counter++
|
counter +=1
|
||||||
return counter
|
return counter
|
||||||
|
|
||||||
def get_player_stats(self,uuid):
|
def get_player_stats(self,uuid):
|
||||||
|
@ -99,7 +99,7 @@ class MinecraftCollector(object):
|
||||||
count += 1
|
count += 1
|
||||||
data["stat.advancements"] = count
|
data["stat.advancements"] = count
|
||||||
if self.questsEnabled:
|
if self.questsEnabled:
|
||||||
data["quests_finished"] = get_player_quests_finished(uuid)
|
data["quests_finished"] = get_player_quests_finished(self,uuid)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def update_metrics_for_player(self,uuid):
|
def update_metrics_for_player(self,uuid):
|
||||||
|
|
Loading…
Reference in a new issue