Rename print_newsgroup() to print_newsgroup_summary()
This commit is contained in:
parent
1a881145f9
commit
48f9f4b3b2
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ class Session(Connection):
|
||||||
|
|
||||||
return self.end()
|
return self.end()
|
||||||
|
|
||||||
def print_newsgroup(self, newsgroup: Newsgroup, since: Optional[datetime.datetime]=None):
|
def print_newsgroup_summary(self, newsgroup: Newsgroup, since: Optional[datetime.datetime]=None):
|
||||||
summary = self._newsgroup_summary(newsgroup, since)
|
summary = self._newsgroup_summary(newsgroup, since)
|
||||||
|
|
||||||
return self.print("%s %d %d %s" % (
|
return self.print("%s %d %d %s" % (
|
||||||
|
@ -330,7 +330,7 @@ class Session(Connection):
|
||||||
last_active = self._newsgroup_last_active(newsgroup)
|
last_active = self._newsgroup_last_active(newsgroup)
|
||||||
|
|
||||||
if now - last_active < datetime.timedelta(days=1):
|
if now - last_active < datetime.timedelta(days=1):
|
||||||
self.print_newsgroup(newsgroup)
|
self.print_newsgroup_summary(newsgroup)
|
||||||
|
|
||||||
return self.end()
|
return self.end()
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ class Session(Connection):
|
||||||
for name in self.server.newsgroups:
|
for name in self.server.newsgroups:
|
||||||
newsgroup = self.server.newsgroups[name]
|
newsgroup = self.server.newsgroups[name]
|
||||||
|
|
||||||
self.print_newsgroup(newsgroup, timestamp)
|
self.print_newsgroup_summary(newsgroup, timestamp)
|
||||||
|
|
||||||
return self.end()
|
return self.end()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue