Fix broken LISTGROUP
This commit is contained in:
parent
454eb2aec9
commit
cefc2c1125
1 changed files with 8 additions and 3 deletions
|
@ -262,7 +262,7 @@ class Session():
|
|||
sql += " and " + msgrange.where()
|
||||
|
||||
summary = self._newsgroup_summary(newsgroup)
|
||||
cr = self.db.execute(sql, (newsgroup.id))
|
||||
cr = self.db.execute(sql, (newsgroup.id,))
|
||||
|
||||
text = "%d %d %d %s" % (
|
||||
summary['count'],
|
||||
|
@ -273,8 +273,13 @@ class Session():
|
|||
|
||||
self.respond(ResponseCode.NNTP_GROUP_LISTING, text)
|
||||
|
||||
for message in cr.each():
|
||||
self.print(str(message.id))
|
||||
while True:
|
||||
row = cr.fetchone()
|
||||
|
||||
if row is None:
|
||||
break
|
||||
|
||||
self.print(str(row[0]))
|
||||
|
||||
return self.end()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue