def count_pages(self, record):
        """Returns the total number of pages for the children of a record."""
        total = record.children.count()
        return int(math.ceil(float(self.per_page) / total))
dataset/ETHPy150Open lektor/lektor-archive/lektor/datamodel.py/PaginationConfig.count_pages/swapped operands of `/`