[WEB-3877] fix: changed logic to calculate cycle duration (#7024)
* chore: cycle running days * chore: removed the module filter
This commit is contained in:
parent
bc2936dcd3
commit
6faff1d556
1 changed files with 6 additions and 2 deletions
|
|
@ -140,7 +140,9 @@ def burndown_plot(queryset, slug, project_id, plot_type, cycle_id=None, module_i
|
|||
# Get all dates between the two dates
|
||||
date_range = [
|
||||
(queryset.start_date + timedelta(days=x)).date()
|
||||
for x in range((queryset.end_date - queryset.start_date).days + 1)
|
||||
for x in range(
|
||||
(queryset.end_date.date() - queryset.start_date.date()).days + 1
|
||||
)
|
||||
]
|
||||
else:
|
||||
date_range = []
|
||||
|
|
@ -180,7 +182,9 @@ def burndown_plot(queryset, slug, project_id, plot_type, cycle_id=None, module_i
|
|||
# Get all dates between the two dates
|
||||
date_range = [
|
||||
(queryset.start_date + timedelta(days=x))
|
||||
for x in range((queryset.target_date - queryset.start_date).days + 1)
|
||||
for x in range(
|
||||
(queryset.target_date - queryset.start_date).days + 1
|
||||
)
|
||||
]
|
||||
|
||||
chart_data = {str(date): 0 for date in date_range}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue