pep8 much?
This commit is contained in:
parent
e77e45d8b8
commit
ed50bc746c
33 changed files with 92 additions and 99 deletions
|
@ -20,13 +20,13 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
|
|||
if not inp: user = sql[0]
|
||||
else:
|
||||
user = inp
|
||||
db.execute("insert or replace into lastfm(nick,acc) values(?,?)",(nick.lower(), user))
|
||||
db.execute("insert or replace into lastfm(nick,acc) values(?,?)", (nick.lower(), user))
|
||||
db.commit()
|
||||
else:
|
||||
if not inp: user = nick
|
||||
else:
|
||||
user = inp
|
||||
db.execute("insert or replace into lastfm(nick,acc) values(?,?)",(nick.lower(), user))
|
||||
db.execute("insert or replace into lastfm(nick,acc) values(?,?)", (nick.lower(), user))
|
||||
db.commit()
|
||||
|
||||
response = http.get_json(api_url, method="user.getrecenttracks",
|
||||
|
@ -67,4 +67,3 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
|
|||
ret += " on \x02%s\x0f" % album
|
||||
|
||||
say(ret)
|
||||
|
||||
|
|
Reference in a new issue