more db work!

This commit is contained in:
Luke Rogers 2014-02-15 19:17:53 +13:00
parent 99487b66c6
commit 91b6d1d8f1
3 changed files with 12 additions and 7 deletions

View file

@ -49,7 +49,7 @@ def horoscope(inp, db=None, notice=None, nick=None):
return "Could not get the horoscope for {}.".format(inp)
if inp and not dontsave:
db.execute("insert or replace into horoscope(nick, sign) values (:nick,:sign)",
db.execute("insert or replace into horoscope(nick, sign) values (:nick,:signS)",
{'nick':nick.lower(), 'sign': sign})
db.commit()