Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 8f5895e

Browse files
michjnichmattrasband
authored andcommitted
Ensure all currency symbols are correct
1 parent 31bca10 commit 8f5895e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sirbot_pyslackers/endpoints/slack/messages.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def stock_quote(message, app):
8989
attachments=[
9090
{
9191
"color": color,
92-
"title": f"{quote.symbol} ({quote.company}): ${quote.price:,.4f}",
92+
"title": f"{quote.symbol} ({quote.company}): {currency_symbol}{quote.price:,.4f}",
9393
"title_link": f"https://finance.yahoo.com/quote/{quote.symbol}",
9494
"fields": [
9595
{
@@ -109,17 +109,17 @@ async def stock_quote(message, app):
109109
},
110110
{
111111
"title": "Close",
112-
"value": f"${quote.market_close:,.4f}",
112+
"value": f"{currency_symbol}{quote.market_close:,.4f}",
113113
"short": True,
114114
},
115115
{
116116
"title": "Low",
117-
"value": f"${quote.low:,.4f}",
117+
"value": f"{currency_symbol}{quote.low:,.4f}",
118118
"short": True,
119119
},
120120
{
121121
"title": "High",
122-
"value": f"${quote.high:,.4f}",
122+
"value": f"{currency_symbol}{quote.high:,.4f}",
123123
"short": True,
124124
},
125125
],

0 commit comments

Comments
 (0)