Merge pull request #22121 from rohitwaghchaure/error-report-exponential-smoothing-report

fix: 'ForecastingReport' object has no attribute 'total_demand'
This commit is contained in:
rohitwaghchaure
2020-06-08 10:30:19 +05:30
committed by GitHub

View File

@@ -217,6 +217,8 @@ class ForecastingReport(ExponentialSmoothingForecast):
}
def get_summary_data(self):
if not self.data: return
return [
{
"value": sum(self.total_demand),