def should_be_approved(pending_registration):
    return (datetime.datetime.utcnow() - pending_registration.initiation_date) >= settings.REGISTRATION_APPROVAL_TIME
Returns true if pending_registration has surpassed its pending time.
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/approve_registrations.py/should_be_approved