mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fixing little syntax errors
This commit is contained in:
parent
b040e855a8
commit
c299956101
@ -93,7 +93,7 @@ class Notes(DBHandler, callbacks.Privmsg):
|
||||
def getUserName(self, userid):
|
||||
self.cursor.execute("""SELECT name FROM users
|
||||
WHERE id=%d""" % userid)
|
||||
if self.cursor.rowcount != 0
|
||||
if self.cursor.rowcount != 0:
|
||||
results = self.cursor.fetchall()
|
||||
return results[0]
|
||||
else:
|
||||
@ -190,3 +190,5 @@ class Notes(DBHandler, callbacks.Privmsg):
|
||||
for (id, from_id) in notes:
|
||||
sender = self.getUserName(from_id)
|
||||
L.append(r'#%d from %s;;' % (id, sender)
|
||||
|
||||
Class = Notes
|
||||
|
Loading…
Reference in New Issue
Block a user