Skip to content

Commit 1eedd74

Browse files
lint fixes
1 parent a73f8ef commit 1eedd74

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/posit/connect/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def with_user_session_token(self, token: str) -> Client:
208208
--------
209209
```python
210210
from posit.connect import Client
211+
211212
client = Client().with_user_session_token("my-user-session-token")
212213
```
213214
@@ -218,13 +219,14 @@ def with_user_session_token(self, token: str) -> Client:
218219
219220
client = Client()
220221
222+
221223
@reactive.calc
222224
def visitor_client():
223225
## read the user session token and generate a new client
224-
user_session_token = session.http_conn.headers.get(
225-
"Posit-Connect-User-Session-Token"
226-
)
226+
user_session_token = session.http_conn.headers.get("Posit-Connect-User-Session-Token")
227227
return client.with_user_session_token(user_session_token)
228+
229+
228230
@render.text
229231
def user_profile():
230232
# fetch the viewer's profile information

0 commit comments

Comments
 (0)