def unexpired_acknowledgements(self):
        acknowledgements = self.alertacknowledgement_set.all().filter(
            time__gte=timezone.now()-timedelta(minutes=settings.ACKNOWLEDGEMENT_EXPIRY),
            cancelled_time__isnull=True,
        ).order_by('-time')
        return acknowledgements
dataset/ETHPy150Open arachnys/cabot/cabot/cabotapp/models.py/CheckGroupMixin.unexpired_acknowledgements/original