removed cast needed because of wrong column type
This commit is contained in:
parent
bdfadb0c11
commit
f6b6c13c12
|
@ -156,7 +156,7 @@ class StockPlay(ModuleBase):
|
||||||
self.log.warning("{} wants top 10 sent to {}".format(nick, replyto))
|
self.log.warning("{} wants top 10 sent to {}".format(nick, replyto))
|
||||||
|
|
||||||
with closing(self.sql.getCursor()) as c:
|
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
|
FROM stockplay_balance_history h1
|
||||||
INNER JOIN (SELECT nick, max(day) as MaxDate FROM stockplay_balance_history
|
INNER JOIN (SELECT nick, max(day) as MaxDate FROM stockplay_balance_history
|
||||||
WHERE nick != ? GROUP BY nick) h2
|
WHERE nick != ? GROUP BY nick) h2
|
||||||
|
|
Loading…
Reference in New Issue