瀏覽代碼

Fix messages sent at exactly midnight appearing twice

master
JustAnotherArchivist 1 年之前
父節點
當前提交
ba7b895931
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py 查看文件

@@ -1052,7 +1052,7 @@ class WebServer:
]) + '</p>'
#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([
'<!DOCTYPE html><html lang="en">',


Loading…
取消
儲存