Merge remote-tracking branch 'origin/main'
This commit is contained in:
		| @@ -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"]) | ||||
|  | ||||
| @@ -267,7 +267,7 @@ def update_for_user(message): | ||||
|         send_to_user("No shares found for your account. Check https://gruppe1.testsites.info to change your settings and add shares.", pUser_id=p_user_id) | ||||
|           | ||||
|      | ||||
| def send_to_user(pText, pUser_id = 1770205310): | ||||
| def send_to_user(pText, pUser_id): | ||||
|      | ||||
|     """ Send message to user | ||||
|     :type pText: string | ||||
|   | ||||
| @@ -19,7 +19,6 @@ import sys | ||||
| from multiprocessing import Process | ||||
| from apscheduler.schedulers.background import BackgroundScheduler | ||||
| from api_handling.api_handler import API_Handler | ||||
| from news.news_fetcher import format_article | ||||
|  | ||||
|  | ||||
| ''' | ||||
| @@ -133,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"]) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user