Token should always be from a practice account

kivy_mainline_and_py3.8
Tyler Goodlet 2019-02-25 22:12:33 -05:00
parent e40e18dd5c
commit 1fd033d351
1 changed files with 4 additions and 4 deletions

View File

@ -45,12 +45,12 @@ def travis():
def write_with_token(token):
conf, path = config.load(cache_dir)
conf.setdefault('questrade', {}).update({'refresh_token': token})
conf.setdefault('questrade', {}).update(
{'refresh_token': token,
'is_practice': 'True'}
)
config.write(conf, path)
# if not os.path.isdir(cache_dir):
# write_with_token(refresh_token)
async def ensure_config():
# try to refresh current token using cached brokers config
# if it fails fail try using the refresh token provided by the