Browse Source

adjust format

master
dave 4 months ago
parent
commit
d183172ca7
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      pyircbot/modules/StockIndex.py

+ 8
- 8
pyircbot/modules/StockIndex.py View File

@@ -71,11 +71,11 @@ class StockIndex(ModuleBase):

warning = "" if time() - self.last_update < warn_thresh else " \x030(quote is out-of-date)"

self.bot.act_PRIVMSG(to, "{}{} ${:.2f} {}{:.2f} ({:.2f}%){}{}".format(color,
symbol,
index["price"],
plusmin,
change,
percentchange,
arrow,
warning))
self.bot.act_PRIVMSG(to, "{} ${:,.2f} {}{}{:,.2f} ({:.2f}%){}{}".format(symbol,
index["price"],
color,
plusmin,
change,
percentchange,
arrow,
warning))

Loading…
Cancel
Save