1
0
Fork 0
main
Kim Huebel 4 years ago
parent 78fcfb691f
commit 7ec16c749d

@ -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…
Cancel
Save