Skip to content

Commit

Permalink
fix sort error
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 15, 2024
1 parent 0df16fa commit d4a303b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "toolong"
version = "1.1.0"
version = "1.1.1"
description = "A terminal log file viewer / tailer / analyzer"
authors = ["Will McGugan <[email protected]>"]
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion src/toolong/log_lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from dataclasses import dataclass
from queue import Empty, Queue
from operator import itemgetter
from threading import Event, RLock, Thread

from textual.message import Message
Expand Down Expand Up @@ -386,7 +387,7 @@ def merge_log_files(self) -> None:

position += log_file.size

merge_lines.sort()
merge_lines.sort(key=itemgetter(0, 1))

self.post_message(ScanComplete(total_size, total_size))

Expand Down
3 changes: 1 addition & 2 deletions src/toolong/log_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ def update_meta(self) -> None:
if self.line_no is not None:
meta.append(f"{self.line_no + 1}")

# meta_line = " • ".join(meta)
meta_line = Text.assemble(*meta)
meta_line = " • ".join(meta)
self.query_one(".meta", Label).update(meta_line)

def watch_tail(self, tail: bool) -> None:
Expand Down

0 comments on commit d4a303b

Please sign in to comment.