cache fix
This commit is contained in:
parent
7cb1fc0543
commit
ce2fb89ccf
|
@ -2644,11 +2644,13 @@ class CutoffTetrio {
|
|||
}
|
||||
|
||||
class CutoffsTetrio {
|
||||
late String id;
|
||||
late DateTime timestamp;
|
||||
late int total;
|
||||
Map<String, CutoffTetrio> data = {};
|
||||
|
||||
CutoffsTetrio.fromJson(Map<String, dynamic> json){
|
||||
id = json['s'];
|
||||
timestamp = DateTime.parse(json['t']);
|
||||
total = json['data']['total'];
|
||||
json['data'].remove("total");
|
||||
|
|
|
@ -408,7 +408,7 @@ class TetrioService extends DB {
|
|||
// so i'm going to document only unique differences between them
|
||||
|
||||
Future<CutoffsTetrio?> fetchCutoffsTetrio() async {
|
||||
CutoffsTetrio? cached = _cache.get("", CutoffsTetrio);
|
||||
CutoffsTetrio? cached = _cache.get("league_ranks", CutoffsTetrio);
|
||||
if (cached != null) return cached;
|
||||
|
||||
Uri url;
|
||||
|
|
Loading…
Reference in New Issue