From 3daf08e76a31879ce93928bdc45462f7c61b1dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Mari=C4=87?= Date: Sun, 9 May 2021 06:39:03 -0700 Subject: [PATCH] Remove extra colon from 2fa prompt (#8) * Remove extra colon from 2fa prompt The 2FA prompt was returning double colons instead of just 1. Fixed the prompt so that it looks correct. --- README.md | 2 +- pyproject.toml | 2 +- ws_rebalancer/wealthsimple_login.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index afd6790..c3c5690 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Using our `sample-target-allocations.csv` as above, a sample run could look as f $ ws-rebalancer rebalance -t sample-target-allocations.csv --email test@gmail.com --2fa Password: Repeat for confirmation: -Enter 2FA code: : 12345 +Enter 2FA code: 12345 0. non-registered Please input the account you want: 0 Buy 5X MSFT @ 10.00 - New allocation 40.00% diff --git a/pyproject.toml b/pyproject.toml index d521f02..acd1eb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ws-rebalancer" -version = "1.0.0" +version = "1.0.1" description = "A CLI tool that helps you rebalance your WealthSimple portfolios." license = "MIT" readme = "README.md" diff --git a/ws_rebalancer/wealthsimple_login.py b/ws_rebalancer/wealthsimple_login.py index 33e3641..69a2e78 100644 --- a/ws_rebalancer/wealthsimple_login.py +++ b/ws_rebalancer/wealthsimple_login.py @@ -21,5 +21,5 @@ def two_factor_function(self): MFACode = "" while not MFACode: # Obtain user input and ensure it is not empty - MFACode = click.prompt("Enter 2FA code: ") + MFACode = click.prompt("Enter 2FA code") return MFACode