File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ def get_data_for_burndown_chart
130
130
estimated = estimated_hours_per_issue [ issue . id ] ? estimated_hours_per_issue [ issue . id ] [ index ] : 0
131
131
done_ratio = done_ratios_per_issue [ issue . id ] ? done_ratios_per_issue [ issue . id ] [ index ] : 0
132
132
133
- total_remaining_hours [ index ] += done_ratio > 0 ? logged /done_ratio * ( 100 -done_ratio ) : estimated
133
+ total_remaining_hours [ index ] += ( ( done_ratio > 0 and logged > 0 ) ? ( logged /done_ratio ) : ( estimated / 100 ) ) * ( 100 -done_ratio )
134
134
135
135
total_logged_hours [ index ] += logged
136
136
total_estimated_hours [ index ] += estimated
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def get_data_for_burndown_chart
109
109
estimated = estimated_hours_per_issue [ issue . id ] ? estimated_hours_per_issue [ issue . id ] [ index ] : 0
110
110
done_ratio = done_ratios_per_issue [ issue . id ] ? done_ratios_per_issue [ issue . id ] [ index ] : 0
111
111
112
- total_remaining_hours [ index ] += done_ratio > 0 ? logged /done_ratio * ( 100 -done_ratio ) : estimated
112
+ total_remaining_hours [ index ] += ( ( done_ratio > 0 and logged > 0 ) ? ( logged /done_ratio ) : ( estimated / 100 ) ) * ( 100 -done_ratio )
113
113
114
114
total_logged_hours [ index ] += logged
115
115
total_estimated_hours [ index ] += estimated
You can’t perform that action at this time.
0 commit comments