[Newm] Fix unread email count
This commit is contained in:
parent
4b85da9a1e
commit
4258623f54
@ -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}"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user