pgcontents/utils/sync.py
def unencrypt_single_user(engine, user_id, old_crypto, logger):
    """
    Unencrypt all files and checkpoints for a single user.
    """
    reencrypt_user_content(
        engine=engine,
        user_id=user_id,
        old_decrypt_func=old_crypto.decrypt,
        new_encrypt_func=lambda s: s,
        logger=logger,
    )
def unencrypt_single_user(engine, user_id, old_crypto, logger):
    """
    Unencrypt all files and checkpoints for a single user.
    """
    reencrypt_user_content(
        engine=engine,
        user_id=user_id,
        old_decrypt_func=old_crypto.decrypt,
        new_encrypt_func=lambda s: s,
        logger=logger,
    )
Unencrypt all files and checkpoints for a single user.