User 65517604288b43787e3cf5d0 has no apm, pps, vs

This commit is contained in:
dan63047 2023-11-14 00:19:34 +03:00
parent 5098b5ebf9
commit 4fb9405bda
1 changed files with 3 additions and 3 deletions

View File

@ -1761,9 +1761,9 @@ class TetrioPlayerFromLeaderboard {
rd = json['league']['rd'].toDouble(); rd = json['league']['rd'].toDouble();
rank = json['league']['rank']; rank = json['league']['rank'];
bestRank = json['league']['bestrank']; bestRank = json['league']['bestrank'];
apm = json['league']['apm'].toDouble(); apm = json['league']['apm'] != null ? json['league']['apm'].toDouble() : 0.00;
pps = json['league']['pps'].toDouble(); pps = json['league']['apm'] != null ? json['league']['pps'].toDouble() : 0.00;
vs = json['league']['vs'].toDouble(); vs = json['league']['apm'] != null ? json['league']['vs'].toDouble(): 0.00;
decaying = json['league']['decaying']; decaying = json['league']['decaying'];
nerdStats = NerdStats(apm, pps, vs); nerdStats = NerdStats(apm, pps, vs);
estTr = EstTr(apm, pps, vs, nerdStats.app, nerdStats.dss, nerdStats.dsp, nerdStats.gbe); estTr = EstTr(apm, pps, vs, nerdStats.app, nerdStats.dss, nerdStats.dsp, nerdStats.gbe);