Fix some classes being incorrectly marked as 100% documented in doc_status.py

(cherry picked from commit f352235b893689d8ba498a98286cc72b068f680f)
This commit is contained in:
Hugo Locurcio authored and Thaddeus Crews committed 2026-06-23 08:36:43 -05:00
1 parent 993de84b86
commit b7afc42c2a
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ class ClassStatusProgress:
def to_colored_string(self, format: str = "{has}/{total}", pad_format: str = "{pad_described}{s}{pad_total}"):
ratio = float(self.described) / float(self.total) if self.total != 0 else 1
percent = int(round(100 * ratio))
percent = int(math.floor(100 * ratio))
s = format.format(has=str(self.described), total=str(self.total), percent=str(percent))
if self.described >= self.total:
s = color("part_good", s)