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
commit 6debdc89c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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),