fix(cod_api_tool.py): remove accolade keys from time key replacement

This commit is contained in:
Rim 2025-03-10 09:46:59 -04:00
parent af7bdf009e
commit 4a825eed76

View File

@ -496,10 +496,8 @@ class CodStatsManager:
def _replace_time_and_duration_recursive(self, data, timezone):
"""Recursively replace epoch times with human-readable formats."""
time_keys = [
"timePlayedTotal", "timePlayed", "objTime", "time", "timeProne",
"timeSpentAsPassenger", "timeSpentAsDriver", "timeOnPoint",
"timeWatchingKillcams", "timeCrouched", "timesSelectedAsSquadLeader",
"longestTimeSpentOnWeapon", "avgLifeTime", "percentTimeMoving"
"timePlayedTotal", "timePlayed", "objTime", "time",
"avgLifeTime", "percentTimeMoving"
]
date_keys = ["date", "updated", "originalDate", "dateAdded"]