From 1659dc93b383b4cd67e836ca1dadfb192015c284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20Gim=C3=A9nez?= Date: Mon, 25 May 2015 19:40:13 -0300 Subject: [PATCH] diaspy.models.Notification.when() use the create_at json field instead looking into the HTML code. --- diaspy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diaspy/models.py b/diaspy/models.py index 8c1d72d..5f1c538 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -195,7 +195,7 @@ class Notification(): def when(self): """Returns UTC time as found in note_html. """ - return self._when_regexp.search(self._data['note_html']).group(0) + return self._data['created_at'] def mark(self, unread=False): """Marks notification to read/unread. -- 2.25.1