src/dirbs/reports/base_operator_country.py
def _retrieve_historic_monthly_scalar(self, historic_monthly_stats, propname, current_count):
        """Returns a list of historic values for a given monthly metric."""
        rv = []
        for monthly_stat in historic_monthly_stats:
            if monthly_stat is None:
                rv.append(0)
            else:
                rv.append(getattr(monthly_stat, propname))
        rv.append(current_count)
        return rv
Returns a list of historic values for a given monthly metric.
Returns a list of historic values for a given monthly metric.
Returns a list of historic values for a given monthly metric .
def _retrieve_historic_monthly_scalar(self, historic_monthly_stats, propname, current_count):
        rv = []
        for monthly_stat in historic_monthly_stats:
            if monthly_stat is None:
                rv.append(0)
            else:
                rv.append(getattr(monthly_stat, propname))
        rv.append(current_count)
        return rv
def _retrieve_historic_monthly_scalar ( self , historic_monthly_stats , propname , current_count ) : rv = [ ] for monthly_stat in historic_monthly_stats : if monthly_stat is None : rv . append ( 0 ) else : rv . append ( getattr ( monthly_stat , propname ) ) rv . append ( current_count ) return rv
Returns a list of historic values for a given monthly metric.
Returns a list of historic values for a given monthly metric .
"""Returns a list of historic values for a given monthly metric."""
self
historic_monthly_stats
propname
current_count