Harelkarni commited on
Commit
d50a99d
1 Parent(s): 3bb6db2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def print_stock_info(stock_info):
71
 
72
  def get_stock_info_from_html(stock_info):
73
  si = stock_info
74
- text = (f"<b>Comp. Name: </b> {si['longName']}, {si['city']}, {si['state']} {si['country']} <br>"
75
  f"<b>Web site: </b> <a href=\"{si['website']}\">{si['website']}</a> <br>"
76
  f"<b>Stock Price: </b> {si['currentPrice']} {str(si['financialCurrency'])}")
77
  return text
 
71
 
72
  def get_stock_info_from_html(stock_info):
73
  si = stock_info
74
+ text = (f"<b>Comp. Name: </b> {si['longName']}, {si['city']}, {si.get('state', '')} {si['country']} <br>"
75
  f"<b>Web site: </b> <a href=\"{si['website']}\">{si['website']}</a> <br>"
76
  f"<b>Stock Price: </b> {si['currentPrice']} {str(si['financialCurrency'])}")
77
  return text