src/dirbs/reports/base_operator_country.py
def _previous_reporting_periods(self):
        """Returns a list of month/year tuples to use when generatic data for historic trends."""
        month = self.month
        year = self.year
        periods = []
        for i in range(5):
            month -= 1
            if month == 0:
                month = 12
                year -= 1
            periods.append((month, year))

        periods.reverse()
        return periods
Returns a list of month/year tuples to use when generatic data for historic trends.
Returns a list of month/year tuples to use when generatic data for historic trends.
Returns a list of month / year tuples to use when generatic data for historic trends .
def _previous_reporting_periods(self):
        month = self.month
        year = self.year
        periods = []
        for i in range(5):
            month -= 1
            if month == 0:
                month = 12
                year -= 1
            periods.append((month, year))
        periods.reverse()
        return periods
def _previous_reporting_periods ( self ) : month = self . month year = self . year periods = [ ] for i in range ( 5 ) : month -= 1 if month == 0 : month = 12 year -= 1 periods . append ( ( month , year ) ) periods . reverse ( ) return periods
Returns a list of month/year tuples to use when generatic data for historic trends.
Returns a list of month / year tuples to use when generatic data for historic trends .
"""Returns a list of month/year tuples to use when generatic data for historic trends."""
self