fix: report issue summary fix for zero issues
This commit is contained in:
parent
500f54e515
commit
2c8a38d9fa
@ -260,8 +260,7 @@ class IssueSummary(object):
|
|||||||
self.issue_summary_data[value]['avg_user_resolution_time'] = entry.get('avg_user_resolution_time') or 0.0
|
self.issue_summary_data[value]['avg_user_resolution_time'] = entry.get('avg_user_resolution_time') or 0.0
|
||||||
|
|
||||||
def get_chart_data(self):
|
def get_chart_data(self):
|
||||||
if not self.data:
|
self.chart = []
|
||||||
return None
|
|
||||||
|
|
||||||
labels = []
|
labels = []
|
||||||
open_issues = []
|
open_issues = []
|
||||||
@ -310,8 +309,7 @@ class IssueSummary(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def get_report_summary(self):
|
def get_report_summary(self):
|
||||||
if not self.data:
|
self.report_summary = []
|
||||||
return None
|
|
||||||
|
|
||||||
open_issues = 0
|
open_issues = 0
|
||||||
replied = 0
|
replied = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user