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() |             sql += " and " + msgrange.where() | ||||||
| 
 | 
 | ||||||
|         summary = self._newsgroup_summary(newsgroup) |         summary = self._newsgroup_summary(newsgroup) | ||||||
|         cr      = self.db.execute(sql, (newsgroup.id)) |         cr      = self.db.execute(sql, (newsgroup.id,)) | ||||||
| 
 | 
 | ||||||
|         text = "%d %d %d %s" % ( |         text = "%d %d %d %s" % ( | ||||||
|             summary['count'], |             summary['count'], | ||||||
|  | @ -273,8 +273,13 @@ class Session(): | ||||||
| 
 | 
 | ||||||
|         self.respond(ResponseCode.NNTP_GROUP_LISTING, text) |         self.respond(ResponseCode.NNTP_GROUP_LISTING, text) | ||||||
| 
 | 
 | ||||||
|         for message in cr.each(): |         while True: | ||||||
|             self.print(str(message.id)) |             row = cr.fetchone() | ||||||
|  | 
 | ||||||
|  |             if row is None: | ||||||
|  |                 break | ||||||
|  | 
 | ||||||
|  |             self.print(str(row[0])) | ||||||
| 
 | 
 | ||||||
|         return self.end() |         return self.end() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue