Skip to content

Commit

Permalink
Merge pull request #93 from skyflowapi/SK-960-sdk-docs-typo-in-python…
Browse files Browse the repository at this point in the history
…-docs

SK-960: fix typo in python readme
  • Loading branch information
yaswanth-pula-skyflow authored Aug 22, 2023
2 parents 7d96794 + 1e55fd2 commit ef21dc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ bearerToken = ''
# User defined function to provide access token to the vault apis
def token_provider():
global bearerToken
if is_expired(bearerToken):
if !(is_expired(bearerToken)):
return bearerToken
bearerToken, _ = generate_bearer_token('<YOUR_CREDENTIALS_FILE_PATH>')
return bearerToken
Expand Down Expand Up @@ -513,7 +513,7 @@ Sample response:

### Update

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.
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.

```python
# Optional, indicates whether to return all fields for updated data. Defaults to 'true'.
Expand Down Expand Up @@ -705,7 +705,7 @@ from skyflow.vault import ConnectionConfig, Configuration, RequestMethod
bearerToken = ''
def token_provider():
global bearerToken
if is_expired(bearerToken):
if !(is_expired(bearerToken)):
return bearerToken
bearerToken, _ = generate_bearer_token('<YOUR_CREDENTIALS_FILE_PATH>')
return bearerToken
Expand Down

0 comments on commit ef21dc5

Please sign in to comment.