You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently comments are free form strings, but to be more explicit a there should be Comments class. It should be a list of Comment objects. A Comment would have attributes:
comment --> a string comment
date --> date the comment was added
author --> Person object that has name and contact info
Comments()
{'comments':
[
{
'comment' : "this is a comment",
'date': "2020-01-01T12:00:00+00:00",
'author:
{
'name': "author name",
'email': "[email protected]",
'organization': "author organization",
},
{
'comment' : "this is a second comment",
'date': "2020-01-02T12:00:00+00:00",
'author:
{
'name': "author name",
'email': "[email protected]",
'organization': "author organization",
},
]
}
The text was updated successfully, but these errors were encountered:
Currently
comments
are free form strings, but to be more explicit a there should beComments
class. It should be a list ofComment
objects. AComment
would have attributes:comment
--> a string commentdate
--> date the comment was addedauthor
-->Person
object that has name and contact infoThe text was updated successfully, but these errors were encountered: