Fix some classes being incorrectly marked as 100% documented in doc_status.py
(cherry picked from commit f352235b893689d8ba498a98286cc72b068f680f)
This commit is contained in:
1 parent
993de84b86
commit
b7afc42c2a
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user