def priority(self, item):
        """
        The priority of the item depends of the number of entries published
        in the cache divided by the maximum of entries.
        """
        return '%.1f' % max(self.cache[item.pk][0] / self.max_entries, 0.1)
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/sitemaps.py/EntryRelatedSitemap.priority/original