more db work!
This commit is contained in:
parent
99487b66c6
commit
91b6d1d8f1
3 changed files with 12 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
|
Reference in a new issue