fix: 'ForecastingReport' object has no attribute 'total_demand'

This commit is contained in:
Rohit Waghchaure 2020-06-05 13:56:20 +05:30
parent 7a05662e9f
commit 5a82276389

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