Fix 'LIST ACTIVE' to always return message ranges
This commit is contained in:
parent
63e61f7498
commit
241ac5a2d8
1 changed files with 1 additions and 6 deletions
|
@ -330,14 +330,9 @@ class Session(Connection):
|
|||
return row[0]
|
||||
|
||||
def _cmd_list_active(self):
|
||||
now = datetime.datetime.now(datetime.UTC)
|
||||
|
||||
self.respond(ResponseCode.NNTP_INFORMATION_FOLLOWS)
|
||||
|
||||
for newsgroup in self.each_newsgroup():
|
||||
last_active = self._newsgroup_last_active(newsgroup)
|
||||
|
||||
if now - last_active < datetime.timedelta(days=1):
|
||||
self.print_newsgroup_summary(newsgroup)
|
||||
|
||||
return self.end()
|
||||
|
|
Loading…
Add table
Reference in a new issue