diff --git a/lib/data_objects/tetrio.dart b/lib/data_objects/tetrio.dart index eeff63b..8ff586c 100644 --- a/lib/data_objects/tetrio.dart +++ b/lib/data_objects/tetrio.dart @@ -901,7 +901,7 @@ class TetraLeagueAlphaRecord{ replayId = json['replayid']; ownId = json['_id']??replayId; timestamp = DateTime.parse(json['ts']); - replayAvalable = true; + replayAvalable = ownId != replayId; } Map toJson() { diff --git a/lib/services/tetrio_crud.dart b/lib/services/tetrio_crud.dart index d949867..f821c73 100644 --- a/lib/services/tetrio_crud.dart +++ b/lib/services/tetrio_crud.dart @@ -606,7 +606,7 @@ class TetrioService extends DB { if (kIsWeb) { url = Uri.https('ts.dan63.by', 'oskware_bridge.php', {"endpoint": "TLMatches", "user": userID}); } else { - url = Uri.https('api.p1nkl0bst3r.xyz', 'tlmatches/$userID', {"before": "66749c93ffcbce61b2a1d912"}); + url = Uri.https('api.p1nkl0bst3r.xyz', 'tlmatches/$userID', {"before": "0", "count": "9000"}); } try{ diff --git a/lib/views/main_view.dart b/lib/views/main_view.dart index a95ff9b..14ab269 100644 --- a/lib/views/main_view.dart +++ b/lib/views/main_view.dart @@ -1085,7 +1085,7 @@ class _TwoRecordsThingy extends StatelessWidget { if (sprint != null) FinesseThingy(sprint?.endContext.finesse, sprint?.endContext.finessePercentage), if (sprint != null) LineclearsThingy(sprint!.endContext.clears, sprint!.endContext.lines, sprint!.endContext.holds, sprint!.endContext.tSpins), if (sprint != null) Text("${sprint!.endContext.inputs} KP • ${f2.format(sprint!.endContext.kps)} KPS"), - Wrap( + if (sprint != null) Wrap( alignment: WrapAlignment.spaceBetween, crossAxisAlignment: WrapCrossAlignment.start, spacing: 20, @@ -1171,7 +1171,7 @@ class _TwoRecordsThingy extends StatelessWidget { if (blitz != null) FinesseThingy(blitz?.endContext.finesse, blitz?.endContext.finessePercentage), if (blitz != null) LineclearsThingy(blitz!.endContext.clears, blitz!.endContext.lines, blitz!.endContext.holds, blitz!.endContext.tSpins), if (blitz != null) Text("${blitz!.endContext.piecesPlaced} P • ${blitz!.endContext.inputs} KP • ${f2.format(blitz!.endContext.kpp)} KPP • ${f2.format(blitz!.endContext.kps)} KPS"), - Wrap( + if (blitz != null) Wrap( alignment: WrapAlignment.spaceBetween, crossAxisAlignment: WrapCrossAlignment.start, spacing: 20, diff --git a/lib/widgets/singleplayer_record.dart b/lib/widgets/singleplayer_record.dart index 3dd9209..5d19c94 100644 --- a/lib/widgets/singleplayer_record.dart +++ b/lib/widgets/singleplayer_record.dart @@ -126,7 +126,7 @@ class SingleplayerRecord extends StatelessWidget { LineclearsThingy(record!.endContext.clears, record!.endContext.lines, record!.endContext.holds, record!.endContext.tSpins), if (record!.endContext.gameType == "40l") Text("${record!.endContext.inputs} KP • ${f2.format(record!.endContext.kps)} KPS"), if (record!.endContext.gameType == "blitz") Text("${record!.endContext.piecesPlaced} P • ${record!.endContext.inputs} KP • ${f2.format(record!.endContext.kpp)} KPP • ${f2.format(record!.endContext.kps)} KPS"), - Wrap( + if (record != null) Wrap( alignment: WrapAlignment.spaceBetween, crossAxisAlignment: WrapCrossAlignment.start, spacing: 20,