Fix NEWGROUPS client method

This commit is contained in:
XANTRONIX Development 2024-12-05 08:39:17 -05:00
parent 4aa222dc8f
commit 616e767c0c

View file

@ -78,11 +78,11 @@ class Client(Connection):
yield line yield line
def each_newsgroup(self, wildmat: str, timestamp: datetime.datetime): def each_newsgroup_since(self, timestamp: datetime.datetime):
date = timestamp.strftime('%Y%m%d') date = timestamp.strftime('%Y%m%d')
time = timestamp.strftime('%H%M%S') time = timestamp.strftime('%H%M%S')
response = self.request('NEWGROUPS', wildmat, date, time) response = self.request('NEWGROUPS', date, time)
for line in self.each_response_line(): for line in self.each_response_line():
parts = self.RE_SPLIT.split(line) parts = self.RE_SPLIT.split(line)