Skip to content

Commit f962ef3

Browse files
committed
add changes and readme mod
1 parent aa73229 commit f962ef3

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Help support this project and future projects by donating to my [Patreon Page](h
129129
If you'd like to watch more of my content, feel free to visit my YouTube channel [Sigma Coding](https://www.youtube.com/c/SigmaCoding).
130130

131131
**Hire Me:**
132-
If you have a project, you think I can help you with feel free to reach out at coding.sigma@gmail.com
132+
If you have a project, you think I can help you with feel free to reach out at [coding.sigma@gmail.com](mailto:coding.sigma@gmail.com?subject=[GitHub]%20Project%20Proposal) or fill out the [contract request form](https://forms.office.com/Pages/ResponsePage.aspx?id=ZwOBErInsUGliXx0Yo2VfcCSWZSwW25Es3vPV2veU0pUMUs5MUc2STkzSzVQMFNDVlI5NjJVNjREUi4u)
133133

134134
## Authentication Workflow
135135

samples/instructions/installation_notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Successfully installed example-pkg-YOUR-USERNAME-HERE-0.0.1
223223
```
224224

225225
```console
226-
pip show td_ameritrade_python_api
226+
pip show td-ameritrade-python-api
227227
```
228228

229229
### Step 8: Test that the package was installed correctly

td/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,12 @@ def _state_manager(self, action: str) -> None:
199199

200200
credentials_file = self.credentials_path
201201
credentials_file_exists = credentials_file.does_credentials_file_exist
202-
credentials_file_path = credentials_file.credentials_file.absolute()
202+
203+
# If it's a directory, then create json setting path.
204+
if credentials_file.is_dir:
205+
credentials_file_path = credentials_file.json_library_path()
206+
else:
207+
credentials_file_path = credentials_file.credentials_file.absolute()
203208

204209
# if they allow for caching and the file exists then load it.
205210
if action == 'init' and self.config['cache_state'] and credentials_file_exists:
@@ -551,6 +556,7 @@ def _make_request(self, method: str, endpoint: str, mode: str = None, params: di
551556
return response_dict
552557

553558
elif response.ok:
559+
554560
return response.json()
555561

556562
else:

0 commit comments

Comments
 (0)