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", [])
|
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] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user