def superuser_api_key_required(f):
    """Decorator ensures only superuser API keys can request this function."""
    @functools.wraps(f)
    def wrapped(*args, **kwargs):
        api_key = current_api_key()
        g.api_key = api_key

        utils.jsonify_assert(
            api_key.superuser,
            api_key.id % 'API key=%r must be a super user',
            403)

        return f(*args, **kwargs)

    return wrapped
dataset/ETHPy150Open bslatkin/dpxdt/dpxdt/server/auth.py/superuser_api_key_required/swapped operands of `%`