def sort_retention_periods(retention_periods):
    result = list(sorted(set(p + 0 for p in retention_periods)))
    if result and result[0] < 1:
        raise ValueError('retention_periods must be greater than one day,'
                         'not %s' % result[0])
    return result
dataset/ETHPy150Open MontmereLimited/django-lean/django_lean/lean_retention/reports.py/sort_retention_periods/original