zenodo_accessrequests/models.py
def get_by_receiver(cls, request_id, user):
        """Get access request for a specific receiver."""
        return cls.query.filter_by(
            id=request_id,
            receiver_user_id=user.id
        ).first()
def get_by_receiver(cls, request_id, user):
        """Get access request for a specific receiver."""
        return cls.query.filter_by(
            id=request_id,
            receiver_user_id=user.id
        ).first()
def get_by_receiver ( cls , request_id , user ) : return cls . query . filter_by ( id = request_id , receiver_user_id = user . id ) . first ( )
Get access request for a specific receiver.
Get access request for a specific receiver .