A full featured blog in RiotJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
1.0 KiB

from json import dumps
from time import time
from uuid import uuid4
def comment(author, title, text, t, uid):
return {
"time" : t,
"id" : uid,
"title" : title,
"author" : author,
"text" : text
}
testcomments = {
1 : dumps(
[
comment("Person 1", "Two", "A Comment here", 1, str(uuid4())),
comment("Person 2", "One", "Some other comment", 2, str(uuid4())),
comment("Person 3", "Three", "My opinion is correct", 3, str(uuid4()))
]),
2 : dumps(
[
comment("Person 1", "Two", "A cool terrible Comment here", 1, str(uuid4())),
comment("Person 2", "One", "Some other awful comment", 2, str(uuid4())),
comment("Person 3", "Three", "My opinion is not correct", 3, str(uuid4()))
])
}