Fix: Inverted sorting
This commit is contained in:
parent
c325e747fa
commit
a32e8fa77f
|
@ -67,7 +67,7 @@ def sms_soup_to_message(soup: bs4.BeautifulSoup) -> Message:
|
|||
|
||||
|
||||
def select_newest_file_in_dir(path: Path) -> Path:
|
||||
return min(
|
||||
return max(
|
||||
(p for p in path.iterdir() if p.suffix == '.xml' and 'sms' in p.name),
|
||||
key=lambda p: p.stat().st_atime_ns,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user