fix: use correct case for Location key in read_play_stats
This commit is contained in:
@@ -934,7 +934,7 @@ class Nano7Database:
|
||||
|
||||
tracks = data.get("mhlt", [])
|
||||
for track in tracks:
|
||||
loc = track.get("location", "")
|
||||
loc = track.get("Location") or track.get("location", "")
|
||||
if not loc:
|
||||
continue
|
||||
base_stats[loc] = {
|
||||
@@ -953,7 +953,7 @@ class Nano7Database:
|
||||
for i, entry in enumerate(entries):
|
||||
if i >= len(tracks):
|
||||
break
|
||||
loc = tracks[i].get("location", "")
|
||||
loc = tracks[i].get("Location") or tracks[i].get("location", "")
|
||||
if not loc:
|
||||
continue
|
||||
delta_stats[loc] = {
|
||||
|
||||
Reference in New Issue
Block a user