[Newm] Fix unread email count

This commit is contained in:
Lucien Cartier-Tilet 2022-12-07 16:04:03 +01:00
parent 4b85da9a1e
commit 4258623f54
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

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}"