From ba7b8959316d960918c41a0cbce84c07121f1b78 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Wed, 31 Aug 2022 02:24:50 +0000 Subject: [PATCH] Fix messages sent at exactly midnight appearing twice --- irclog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irclog.py b/irclog.py index 85724e1..2d718c0 100644 --- a/irclog.py +++ b/irclog.py @@ -1052,7 +1052,7 @@ class WebServer: ]) + '

' #TODO Implement this in a better way... fn = date.strftime('%Y-%m.log') - lines = list(self._raw_to_lines(self._file_iter_with_path(os.path.join(self.config['storage']['path'], request.match_info["path"], fn), request.match_info["path"]), filter = lambda path, ts, command, content: dateStart <= ts <= dateEnd)) + lines = list(self._raw_to_lines(self._file_iter_with_path(os.path.join(self.config['storage']['path'], request.match_info["path"], fn), request.match_info["path"]), filter = lambda path, ts, command, content: dateStart <= ts < dateEnd)) return aiohttp.web.Response( body = ''.join([ '',