[Newm] Fix unread email count

This commit is contained in:
2022-12-07 16:04:03 +01:00
parent 4b85da9a1e
commit 4258623f54

View File

@@ -232,7 +232,7 @@ def unread_emails() -> str:
text=True,
check=True,
).stdout
nbr_unread: int = len(str(unread).split("\n"))
nbr_unread: int = len(str(unread).strip().split("\n"))
return f"{nbr_unread}"