def is_published(self, request=None):
        """
        Returns True/False if the Project is published for the user in the
        given request. Staff users can see any projects while regular users can
        see any of their own projects

        If no request is given, or the user is not staff and viewing another
        user's project, returns True if publish_date <= now() and status ==
        CONTENT_STATUS_PUBLISHED otherwise False.
        """
        if request is not None:
            if request.user.is_staff or request.user == self.user:
                return True
        return (now() <= self.publish_date and
            self.status == CONTENT_STATUS_PUBLISHED)
dataset/ETHPy150Open python/raspberryio/raspberryio/project/models.py/Project.is_published/swapped operands of `<=`