1
0

Fix: Inverted sorting
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 21s

This commit is contained in:
Jon Michael Aanes 2024-11-04 22:32:20 +01:00
parent c325e747fa
commit a32e8fa77f
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -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,
)