fix: use correct case for Location key in read_play_stats

This commit is contained in:
Maksim Totmin
2026-06-01 22:32:17 +07:00
parent ba7144c88f
commit d08125c7b3
+2 -2
View File
@@ -934,7 +934,7 @@ class Nano7Database:
tracks = data.get("mhlt", []) tracks = data.get("mhlt", [])
for track in tracks: for track in tracks:
loc = track.get("location", "") loc = track.get("Location") or track.get("location", "")
if not loc: if not loc:
continue continue
base_stats[loc] = { base_stats[loc] = {
@@ -953,7 +953,7 @@ class Nano7Database:
for i, entry in enumerate(entries): for i, entry in enumerate(entries):
if i >= len(tracks): if i >= len(tracks):
break break
loc = tracks[i].get("location", "") loc = tracks[i].get("Location") or tracks[i].get("location", "")
if not loc: if not loc:
continue continue
delta_stats[loc] = { delta_stats[loc] = {