removed cast needed because of wrong column type

This commit is contained in:
Mike Edmister 2019-04-25 11:49:04 -04:00
parent bdfadb0c11
commit f6b6c13c12
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class StockPlay(ModuleBase):
self.log.warning("{} wants top 10 sent to {}".format(nick, replyto))
with closing(self.sql.getCursor()) as c:
for num, row in enumerate(c.execute("""SELECT h1.nick as nick, CAST(h1.cents as INTEGER) as cents
for num, row in enumerate(c.execute("""SELECT h1.nick as nick, h1.cents as cents
FROM stockplay_balance_history h1
INNER JOIN (SELECT nick, max(day) as MaxDate FROM stockplay_balance_history
WHERE nick != ? GROUP BY nick) h2