From 9e344c4f9ab003c57a8b6c8bad7178605b7f3ac1 Mon Sep 17 00:00:00 2001 From: Florian Kellermann Date: Tue, 26 Apr 2022 09:36:25 +0200 Subject: [PATCH] update to isin --- telegram_bot/bot.py | 6 +++--- telegram_bot/bot_updates.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/telegram_bot/bot.py b/telegram_bot/bot.py index 684f96c..a2cc2a6 100644 --- a/telegram_bot/bot.py +++ b/telegram_bot/bot.py @@ -250,9 +250,9 @@ def update_for_user(message): my_portfolio = p_my_handler.get_user_portfolio(p_user_id) for element in my_portfolio: - if element["count"] != '' and element["symbol"]!= '': - print(element["count"], element["symbol"]) - share_symbols.append(element["symbol"]) + if element["count"] != '' and element["isin"]!= '': + print(element["count"], element["isin"]) + share_symbols.append(element["isin"]) share_amounts.append(element["count"]) share_courses.append(element["current_price"]) diff --git a/telegram_bot/bot_updates.py b/telegram_bot/bot_updates.py index 6d81fcd..46df917 100644 --- a/telegram_bot/bot_updates.py +++ b/telegram_bot/bot_updates.py @@ -132,9 +132,9 @@ def update_for_user(p_user_id, p_my_handler): my_portfolio = p_my_handler.get_user_portfolio(p_user_id) for element in my_portfolio: - if element["count"] != '' and element["symbol"]!= '': - print(element["count"], element["symbol"]) - share_symbols.append(element["symbol"]) + if element["count"] != '' and element["isin"]!= '': + print(element["count"], element["isin"]) + share_symbols.append(element["isin"]) share_amounts.append(element["count"]) share_courses.append(element["current_price"])