[WEB-3877] fix: changed logic to calculate cycle duration (#7024)

* chore: cycle running days

* chore: removed the module filter
This commit is contained in:
Bavisetti Narayan
2025-05-07 18:40:37 +05:30
committed by GitHub
parent bc2936dcd3
commit 6faff1d556

View File

@@ -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}