fix: precision calculation with wrong notes

This commit is contained in:
GitBluub
2023-06-01 01:00:29 +09:00
committed by Bluub
parent 35049eede9
commit 3276b02e0f

View File

@@ -298,7 +298,7 @@ class Scorometer:
{
"type": "end",
"overallScore": self.info["score"],
"precision": round(((self.info["perfect"] + self.info["great"] + self.info["good"]) / len(self.partition.notes) * 100), 2),
"precision": round(((self.info["perfect"] + self.info["great"] + self.info["good"]) / (len(self.partition.notes) + self.info["wrong"]) * 100), 2),
"score": self.info,
}
)