def _get_cumulative_results(self, results):
        """
        Returns a dictionary of {'total': x, 'unique': y} for the
        date range.
        """
        hits = {'total': 0, 'unique': 0}

        day_hits = list(hits[0] for hits in results.values() if hits)
        for metrics in day_hits:
            hits['total'] += metrics['nb_hits']
            hits['unique'] += metrics['nb_uniq_visitors']

        return hits