diff --git a/app/dao/services_dao.py b/app/dao/services_dao.py index 302cd8952..0b91e2267 100644 --- a/app/dao/services_dao.py +++ b/app/dao/services_dao.py @@ -589,9 +589,8 @@ def dao_fetch_monthly_historical_usage_by_template_for_service(service_id, year) for today_result in today_results: add_to_stats = True for stat in stats: - if today_result.template_id == stat.template_id and \ - today_result.month == stat.month and \ - today_result.year == stat.year: + if today_result.template_id == stat.template_id and today_result.month == stat.month \ + and today_result.year == stat.year: stat.count = stat.count + today_result.count add_to_stats = False