def handle_noargs(self, **options):
        notifications = NotificationQueue.objects.exclude(send_at__gte=datetime.now())

        for notification in notifications:
            if notification_settings.QUEUE_MAX_TRIES >= notification.tries:
                # Don't try it any more
                # TODO: logging, email error, etc
                notification.delete()
                continue

            backend_class = notification.get_backend()
            backend = backend_class(user=notification.user, subject=notification.subject, text=notification.text)

            result = backend.validate()
            if result:
                result = backend.process()

            if result:
                # success, simply delete the notification from the queue
                notification.delete()
            else:
                # error, update the try counter
                # TODO: logging, email error, etc
                notification.tries = F('tries') + 1
                notification.save()
dataset/ETHPy150Open kevinrenskers/django-generic-notifications/notifications/management/commands/process_notifications.py/Command.handle_noargs/swapped operands of `>=`