Add three dots when truncating

This commit is contained in:
Stijn De Clercq 2021-03-03 18:44:53 +01:00
parent 981f7a1457
commit 2c634912ef

View file

@ -40,7 +40,7 @@ class UforaNotification:
desc = self._clean_content(self._content["summary"]) desc = self._clean_content(self._content["summary"])
if len(desc) > 500: if len(desc) > 500:
return desc[:500] return desc[:497] + "..."
return desc return desc