Merge pull request #22121 from rohitwaghchaure/error-report-exponential-smoothing-report
fix: 'ForecastingReport' object has no attribute 'total_demand'
This commit is contained in:
commit
6debdc89c2
@ -217,6 +217,8 @@ class ForecastingReport(ExponentialSmoothingForecast):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def get_summary_data(self):
|
def get_summary_data(self):
|
||||||
|
if not self.data: return
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"value": sum(self.total_demand),
|
"value": sum(self.total_demand),
|
||||||
|
Loading…
Reference in New Issue
Block a user