From f9927e9acbd54ed2cf717550ad33be423b542312 Mon Sep 17 00:00:00 2001 From: Mike Edmister Date: Thu, 25 Apr 2019 11:55:26 -0400 Subject: [PATCH] added $ and changed from .thing to ['thing'] --- pyircbot/modules/StockPlay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyircbot/modules/StockPlay.py b/pyircbot/modules/StockPlay.py index 43f1ec0..7d2a6b5 100644 --- a/pyircbot/modules/StockPlay.py +++ b/pyircbot/modules/StockPlay.py @@ -162,9 +162,9 @@ class StockPlay(ModuleBase): WHERE nick != ? GROUP BY nick) h2 ON h1.nick = h2.nick AND h1.day = h2.MaxDate ORDER BY cents DESC LIMIT 10""", (DUSTACCT, )).fetchall(), start=1): - total = Decimal(row.cents) / 100 + total = Decimal(row['cents']) / 100 self.bot.act_PRIVMSG(replyto, - "{}: {} with total: ~{}".format(num, row.nick, total), priority=5) + "{}: {} with total: ~${}".format(num, row['nick'], total), priority=5) def do_trade(self, trade): """