Skip to content
Snippets Groups Projects
Commit 8d1f4125 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Fix: Set default count of extra reports. (Redmine issue: #7627)

parent 0ea8d477
No related branches found
No related tags found
No related merge requests found
......@@ -429,6 +429,11 @@ def aggregate_stats_reports(report_list, dt_from, dt_to, result = None):
# Precalculate list of timeline keys for further bisection search.
tl_keys = [x[0] for x in result[ST_SKEY_TIMELINE]]
# Set the default count of report types to 0. Fixes issue #7627.
for report_type_key in (ST_SKEY_CNT_REPS_S, ST_SKEY_CNT_REPS_E):
if report_type_key not in result:
result[report_type_key] = 0
for report in report_list:
report_ct = report.createtime
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment