From 5915a324b78c93afe3d38978009214b64c68573f Mon Sep 17 00:00:00 2001 From: Julian Mills Date: Thu, 5 Dec 2024 00:02:05 +0100 Subject: [PATCH] update python snippet --- src/screens/cloud-panel/modals/connect-sdk.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/screens/cloud-panel/modals/connect-sdk.tsx b/src/screens/cloud-panel/modals/connect-sdk.tsx index dbc408a1..5b808a69 100644 --- a/src/screens/cloud-panel/modals/connect-sdk.tsx +++ b/src/screens/cloud-panel/modals/connect-sdk.tsx @@ -73,16 +73,13 @@ function ConnectSdkModal({ instance }: ConnectSdkModalProps) { `, py: ` # Open a connection - async with Surreal("wss://${instance.host}") as db: + async with Surreal(url="wss://${instance.host}") as db: # Select a namespace and database await db.use("${namespace}", "${database}") # Authenticate - await db.signin({ - "user": "${username}", - "pass": "${password}" - }) + await db.sign_in(username="${username}", password="${password}") `, php: ` $db = new \\Surreal\\Surreal();