Skip to content

Commit

Permalink
Remove switch_site() example which is confusing in this context of de…
Browse files Browse the repository at this point in the history
…monstrating login
  • Loading branch information
bcantoni committed Oct 22, 2024
1 parent 7f69133 commit 2d3edd4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions samples/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ def sample_connect_to_server(args):
# Make sure we use an updated version of the rest apis, and pass in our cert handling choice
server = TSC.Server(args.server, use_server_version=True, http_options={"verify": check_ssl_certificate})
server.auth.sign_in(tableau_auth)
server.version = "2.6"
new_site: TSC.SiteItem = TSC.SiteItem("cdnear", content_url=args.site)
server.auth.switch_site(new_site)
print("Logged in successfully")
server.version = "3.19"

return server

Expand Down

0 comments on commit 2d3edd4

Please sign in to comment.