Added more debug print outputs
This commit is contained in:
parent
25eb66aeb5
commit
c2de58039b
1 changed files with 4 additions and 2 deletions
|
@ -10,17 +10,19 @@ with open(cfg.database) as f:
|
|||
|
||||
for user in data.keys():
|
||||
print("\n\nUser:", user)
|
||||
print("Portfolio:")
|
||||
print("[1] Portfolio")
|
||||
|
||||
for stock in data[user]["portfolio"].keys():
|
||||
ticker = stock
|
||||
amount = data[user]["portfolio"][stock]
|
||||
print(" ", ticker, amount)
|
||||
m.add_stock(user, ticker, amount)
|
||||
|
||||
print("Watchlist:")
|
||||
print("[2] Watchlist")
|
||||
for stock in data[user]["watchlist"].keys():
|
||||
ticker = stock
|
||||
amount = data[user]["watchlist"][stock]
|
||||
print(" ", ticker, amount)
|
||||
m.watch(user, ticker, amount)
|
||||
|
||||
print("[*] Done!")
|
||||
|
|
Loading…
Add table
Reference in a new issue