def GetAllPosts():
 posts = [{'content': str(row[1]), 'time': str(row[0])} for row in DB]
 posts.sort(key=(lambda row: row['time']), reverse=True)
 return posts

def GetAllPosts ( ) : posts = [ { 'content' : str ( row [ 1 ] ) , 'time' : str ( row [ 0 ] ) } for row in DB ] posts . sort ( key = ( lambda row : row [ 'time' ] ) , reverse = True ) return posts
get all the posts from the database .