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]
|
return row[0]
|
||||||
|
|
||||||
def _cmd_list_active(self):
|
def _cmd_list_active(self):
|
||||||
now = datetime.datetime.now(datetime.UTC)
|
|
||||||
|
|
||||||
self.respond(ResponseCode.NNTP_INFORMATION_FOLLOWS)
|
self.respond(ResponseCode.NNTP_INFORMATION_FOLLOWS)
|
||||||
|
|
||||||
for newsgroup in self.each_newsgroup():
|
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)
|
self.print_newsgroup_summary(newsgroup)
|
||||||
|
|
||||||
return self.end()
|
return self.end()
|
||||||
|
|
Loading…
Add table
Reference in a new issue