scripts/burndowndata.py in trollolo-0.0.11 vs scripts/burndowndata.py in trollolo-0.0.12
- old
+ new
@@ -153,8 +153,11 @@
if self.ymin > -3:
self.ymin = -3
return
def setScaleFactor(self, total_tasks, total_story_points):
- self.scalefactor = float(total_tasks) / float(total_story_points)
+ if total_story_points <= 0.001:
+ self.scalefactor = 1
+ else:
+ self.scalefactor = float(total_tasks) / float(total_story_points)
return