mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Converted some %d to %s.
This commit is contained in:
parent
33f76608fa
commit
4caedf25b6
@ -174,7 +174,7 @@ class Notes(callbacks.Privmsg):
|
|||||||
author = self.getUserName(from_id)
|
author = self.getUserName(from_id)
|
||||||
public = int(public)
|
public = int(public)
|
||||||
added_at = int(added_at)
|
added_at = int(added_at)
|
||||||
elapsed = utils.timeElapsed(time.time() - added_at)
|
elapsed = utils.timeElapsed(time.time(), added_at)
|
||||||
newnote = "%s (Sent by %s %s ago)" % (note, author, elapsed)
|
newnote = "%s (Sent by %s %s ago)" % (note, author, elapsed)
|
||||||
if senderID == to_id:
|
if senderID == to_id:
|
||||||
if public:
|
if public:
|
||||||
@ -206,15 +206,15 @@ class Notes(callbacks.Privmsg):
|
|||||||
WHERE to_id=%s
|
WHERE to_id=%s
|
||||||
AND read=0""", senderID)
|
AND read=0""", senderID)
|
||||||
count = int(self.cursor.fetchone()[0])
|
count = int(self.cursor.fetchone()[0])
|
||||||
#debug.printf("count: %d" % count)
|
#debug.printf("count: %s" % count)
|
||||||
L = []
|
L = []
|
||||||
for (id, from_id, public, read) in notes:
|
for (id, from_id, public, read) in notes:
|
||||||
if not int(read):
|
if not int(read):
|
||||||
sender = self.getUserName(from_id)
|
sender = self.getUserName(from_id)
|
||||||
if int(public):
|
if int(public):
|
||||||
L.append(r'#%d from %s' % (id, sender))
|
L.append(r'#%s from %s' % (id, sender))
|
||||||
else:
|
else:
|
||||||
L.append(r'#%d (private)' % id)
|
L.append(r'#%s (private)' % id)
|
||||||
if count > 5:
|
if count > 5:
|
||||||
L = string.join(L[:5], ', ')
|
L = string.join(L[:5], ', ')
|
||||||
reply = "you have %s unread notes, 5 shown: %s" % (count, L)
|
reply = "you have %s unread notes, 5 shown: %s" % (count, L)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user