diff --git a/lib/data_objects/tetrio.dart b/lib/data_objects/tetrio.dart index 1906636..084858e 100644 --- a/lib/data_objects/tetrio.dart +++ b/lib/data_objects/tetrio.dart @@ -2644,11 +2644,13 @@ class CutoffTetrio { } class CutoffsTetrio { + late String id; late DateTime timestamp; late int total; Map data = {}; CutoffsTetrio.fromJson(Map json){ + id = json['s']; timestamp = DateTime.parse(json['t']); total = json['data']['total']; json['data'].remove("total"); diff --git a/lib/services/tetrio_crud.dart b/lib/services/tetrio_crud.dart index 1559fa4..d39419c 100644 --- a/lib/services/tetrio_crud.dart +++ b/lib/services/tetrio_crud.dart @@ -408,7 +408,7 @@ class TetrioService extends DB { // so i'm going to document only unique differences between them Future fetchCutoffsTetrio() async { - CutoffsTetrio? cached = _cache.get("", CutoffsTetrio); + CutoffsTetrio? cached = _cache.get("league_ranks", CutoffsTetrio); if (cached != null) return cached; Uri url;