weather: store input location in db, not fragment of location. fixes #82

This commit is contained in:
Ryan Hitchman 2013-08-07 20:29:02 -07:00
parent adc6783f4f
commit 310863a2b9
1 changed files with 1 additions and 1 deletions

View File

@ -99,5 +99,5 @@ def weather(inp, nick='', server='', reply=None, db=None, api_key=None):
if inp and not dontsave:
db.execute("insert or replace into weather(nick, loc) values (?,?)",
(nick.lower(), loc))
(nick.lower(), inp))
db.commit()