def use(self, count=1):
        """
        Mark invitations used.

        Raises ``InvitationError`` if ``INVITATION_INVITE_ONLY`` is True or
        ``count`` is more than available invitations.

        **Optional arguments:**

        :count:
            Number of invitations to mark used. Default is ``1``.
        """
        if app_settings.INVITE_ONLY:
            if 0 >= self.available - count:
                self.available = models.F('available') - count
            else:
                raise InvitationError('No available invitations.')
        self.sent = models.F('sent') + count
        self.save()
dataset/ETHPy150Open muhuk/django-inviting/invitation/models.py/InvitationStats.use/swapped operands of `>=`