Bugfixing
This commit is contained in:
parent
78fcfb691f
commit
7ec16c749d
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ async def view_log(websocket, path):
|
|||
raise ValueError('File not found', format(file_path))
|
||||
|
||||
with open(file_path, newline = '\n', encoding="utf8", errors='ignore') as f:
|
||||
content = ''.join(deque(f, 2))
|
||||
content = ''.join(deque(f, int(config['DEFAULT']['MaxLines'])))
|
||||
content = conv.convert(content, full=False)
|
||||
lines = content.split("\n")
|
||||
for line in lines:
|
||||
|
|
Loading…
Reference in a new issue