projects
/
diaspy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaaba30
)
diaspy.models.Notification.when() use the create_at json field instead looking into...
author
Christian Giménez
<cnngimenez@gmail.com>
Mon, 25 May 2015 22:40:13 +0000
(19:40 -0300)
committer
Christian Giménez
<cnngimenez@gmail.com>
Mon, 25 May 2015 22:40:13 +0000
(19:40 -0300)
diaspy/models.py
patch
|
blob
|
blame
|
history
diff --git
a/diaspy/models.py
b/diaspy/models.py
index 8c1d72d9766b40c6705a909ae5cb64d101ae52f1..5f1c5383c8a80e007f79d4bf658772d7d7e6c6ac 100644
(file)
--- 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.