Fetch Mastery Points from the Riot API and add the champion sort preference (#76)
The tracker asks Riot for each Account's champion mastery (platform host) right after a successful sync, and after a Match fetched by id is added, so no new polling. Lists are stored per Account in one transaction and read back with Tracker::mastery (None = never fetched). A failed fetch keeps the last values and records no problem. Preferences gain champion_sort (mastery or name). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
50c0427958
commit
5ce8c777c4
9 files changed
+593
-4
No files matched your search
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"puuid": "fixture-puuid-self",
|
||||
"championId": 222,
|
||||
"championLevel": 42,
|
||||
"championPoints": 154320,
|
||||
"lastPlayTime": 1775000000000,
|
||||
"championPointsSinceLastLevel": 3320,
|
||||
"championPointsUntilNextLevel": 0,
|
||||
"markRequiredForNextLevel": 0,
|
||||
"tokensEarned": 0,
|
||||
"milestoneGrades": ["S-", "A"]
|
||||
},
|
||||
{
|
||||
"puuid": "fixture-puuid-self",
|
||||
"championId": 103,
|
||||
"championLevel": 12,
|
||||
"championPoints": 27500,
|
||||
"lastPlayTime": 1774000000000,
|
||||
"championPointsSinceLastLevel": 1500,
|
||||
"championPointsUntilNextLevel": 4500,
|
||||
"tokensEarned": 0
|
||||
},
|
||||
{
|
||||
"puuid": "fixture-puuid-self",
|
||||
"championId": 51,
|
||||
"championLevel": 1,
|
||||
"championPoints": 0,
|
||||
"lastPlayTime": 1773000000000,
|
||||
"championPointsSinceLastLevel": 0,
|
||||
"championPointsUntilNextLevel": 1800,
|
||||
"tokensEarned": 0
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user