All functions fixed for markdown bug

This commit is contained in:
Florian Kellermann
2022-05-10 21:51:27 +02:00
parent c6352c5f75
commit ed26c6969d
3 changed files with 11 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ __license__ = "None"
import investpy
import pandas
from currency_converter import CurrencyConverter
import helper_functions as hf
def get_share_price(str_search_for):
"""get stock price per share for company name or isin or symbol
@@ -106,7 +107,7 @@ def get_share_information_markdown(str_search_for):
search_result = investpy.search_quotes(text=str_search_for, products=['stocks'],
countries=['germany'], n_results=1)
str_return = f'*{search_result.name}*\n_{search_result.symbol}_\nworth: {get_share_price(str_search_for)}'
str_return = f'*{hf.make_markdown_proof(search_result.name)}*\n_{hf.make_markdown_proof(search_result.symbol)}_\nworth: {hf.make_markdown_proof(get_share_price(str_search_for))}'
return str_return
def get_share_information_simple(str_search_for):