mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +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):
|
def getUserName(self, userid):
|
||||||
self.cursor.execute("""SELECT name FROM users
|
self.cursor.execute("""SELECT name FROM users
|
||||||
WHERE id=%d""" % userid)
|
WHERE id=%d""" % userid)
|
||||||
if self.cursor.rowcount != 0
|
if self.cursor.rowcount != 0:
|
||||||
results = self.cursor.fetchall()
|
results = self.cursor.fetchall()
|
||||||
return results[0]
|
return results[0]
|
||||||
else:
|
else:
|
||||||
@ -190,3 +190,5 @@ class Notes(DBHandler, callbacks.Privmsg):
|
|||||||
for (id, from_id) in notes:
|
for (id, from_id) in notes:
|
||||||
sender = self.getUserName(from_id)
|
sender = self.getUserName(from_id)
|
||||||
L.append(r'#%d from %s;;' % (id, sender)
|
L.append(r'#%d from %s;;' % (id, sender)
|
||||||
|
|
||||||
|
Class = Notes
|
||||||
|
Loading…
Reference in New Issue
Block a user