added $ and changed from .thing to ['thing']

This commit is contained in:
Mike Edmister 2019-04-25 11:55:26 -04:00
parent f6b6c13c12
commit f9927e9acb
1 changed files with 2 additions and 2 deletions

View File

@ -162,9 +162,9 @@ class StockPlay(ModuleBase):
WHERE nick != ? GROUP BY nick) h2 WHERE nick != ? GROUP BY nick) h2
ON h1.nick = h2.nick AND h1.day = h2.MaxDate ON h1.nick = h2.nick AND h1.day = h2.MaxDate
ORDER BY cents DESC LIMIT 10""", (DUSTACCT, )).fetchall(), start=1): 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, 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): def do_trade(self, trade):
""" """