removed rounding from getStats

This commit is contained in:
BroodjeAap 2020-11-12 17:30:49 +01:00
parent e3faf41b83
commit 05d541335c

View file

@ -122,7 +122,6 @@ class PracticeDatabase {
batch.insert("PracticeAnswer", answer.toMap());
});
await batch.commit(noResult: true);
getStats();
}
// TODO test the database
@ -163,7 +162,7 @@ class PracticeDatabase {
var stats = getEmtpyStats();
for(var stat in answers){
var typeRange = "${stat['range']} ${stat['type']}";
stats[typeRange] = (stat['ratio'] as double).roundToDouble();
stats[typeRange] = stat['ratio'] as double;
}
print(stats);
}