Skip to content

Commit ef21dc5

Browse files
Merge pull request #93 from skyflowapi/SK-960-sdk-docs-typo-in-python-docs
SK-960: fix typo in python readme
2 parents 7d96794 + 1e55fd2 commit ef21dc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ bearerToken = ''
134134
# User defined function to provide access token to the vault apis
135135
def token_provider():
136136
global bearerToken
137-
if is_expired(bearerToken):
137+
if !(is_expired(bearerToken)):
138138
return bearerToken
139139
bearerToken, _ = generate_bearer_token('<YOUR_CREDENTIALS_FILE_PATH>')
140140
return bearerToken
@@ -513,7 +513,7 @@ Sample response:
513513

514514
### Update
515515

516-
To update data in your vault, use the `update(records: dict, options: UpdateOptions)` method. The `records` parameter takes a Dictionary that contains records to fetch. If `UpdateTokens` is `True`, Skyflow returns tokens for the record you just updated. If `, ids if `UpdateOptions` is `False`, Skyflow returns IDs for the record you updated.
516+
To update data in your vault, use the `update(records: dict, options: UpdateOptions)` method. The `records` parameter takes a Dictionary that contains records to fetch. If `UpdateTokens` is `True`, Skyflow returns tokens for the record you just updated. If `UpdateOptions` is `False`, Skyflow returns IDs for the record you updated.
517517

518518
```python
519519
# Optional, indicates whether to return all fields for updated data. Defaults to 'true'.
@@ -705,7 +705,7 @@ from skyflow.vault import ConnectionConfig, Configuration, RequestMethod
705705
bearerToken = ''
706706
def token_provider():
707707
global bearerToken
708-
if is_expired(bearerToken):
708+
if !(is_expired(bearerToken)):
709709
return bearerToken
710710
bearerToken, _ = generate_bearer_token('<YOUR_CREDENTIALS_FILE_PATH>')
711711
return bearerToken

0 commit comments

Comments
 (0)