show story creation time in details view
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import dateutil
|
||||
import dateutil.parser
|
||||
from html.parser import HTMLParser
|
||||
import sys
|
||||
|
||||
@@ -198,6 +198,12 @@ class Story(AsanaObject):
|
||||
else:
|
||||
return ''
|
||||
|
||||
def created_at(self):
|
||||
if 'created_at' in self.object_dict:
|
||||
return dateutil.parser.parse(self.object_dict['created_at'])
|
||||
else:
|
||||
return ''
|
||||
|
||||
def text(self):
|
||||
if 'html_text' in self.object_dict:
|
||||
parser = HTMLTextParser()
|
||||
|
||||
Reference in New Issue
Block a user