@@ -0,0 +1,728 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A# vim: ai ts=4 sts=4 et sw=4 nu%0A%0Afrom __future__ import (unicode_literals, absolute_import,%0A                        division, print_function)%0Aimport logging%0A%0Afrom django.core.management.base import BaseCommand%0A%0Afrom snisi_core.models.Periods import MonthPeriod%0Afrom snisi_malaria.models import AggMalariaR%0A%0Alogger = logging.getLogger(__name__)%0A%0A%0Aclass Command(BaseCommand):%0A%0A    def handle(self, *args, **options):%0A%0A        period = MonthPeriod.from_url_str(%2211-2014%22)%0A%0A        for report in AggMalariaR.objects.filter(period=period):%0A            logger.info(report)%0A            report.update_expected_reportings_number()%0A            report.save()%0A%0A        logger.info(%22All done.%22)%0A

update report with missing expected numbers