[Flask] Aggregate your news and vote for the content you care about.
1
news = [{
2
'author': 'CNN',
3
'date': 'Dec. 26th, 2019',
4
'content': "Breaking news: the squad is in shambles."
5
}, {
6
'author':
7
'Blendoit',
8
'date':
9
'Dec. 25th, 2019',
10
'content':
11
"Ah, this is a public personal update.\n It's pretty long, because this enables testing layouts that adapt to posts with a lot of content. Do we want the content to wrap around? Should we implement a content clipping feature? Is there a limit to how much placeholder text one can view at a time on the website? As the great Nowaar once said, 'We can throw shapes, but you are not in my circle, bahaha.'"
12
}, {
13
'author': 'Country_V',
14
'date': 'Dec. 24th, 2019',
15
'content': "This is a second public personal update."
16
}, {
17
'author': 'CNN',
18
'date': 'Dec. 26th, 2019',
19
'content': "Breaking news: the squad is in shambles."
20
}, {
21
'author': 'Blendoit',
22
'date': 'Dec. 25th, 2019',
23
'content': "Ah, this is a public personal update."
24
}, {
25
'author': 'Country_V',
26
'date': 'Dec. 24th, 2019',
27
'content': "This is a second public personal update."
28
}, {
29
'author': 'CNN',
30
'date': 'Dec. 26th, 2019',
31
'content': "Breaking news: the squad is in shambles."
32
}, {
33
'author': 'Blendoit',
34
'date': 'Dec. 25th, 2019',
35
'content': "Ah, this is a public personal update."
36
}, {
37
'author': 'Country_V',
38
'date': 'Dec. 24th, 2019',
39
'content': "This is a second public personal update."
40
}, {
41
'author': 'CNN',
42
'date': 'Dec. 26th, 2019',
43
'content': "Breaking news: the squad is in shambles."
44
}, {
45
'author':
46
'Blendoit',
47
'date':
48
'Dec. 25th, 2019',
49
'content':
50
"Ah, this is a public personal update.\n It's pretty long, because this enables testing layouts that adapt to posts with a lot of content. Do we want the content to wrap around? Should we implement a content clipping feature?"
51
}, {
52
'author': 'CNN',
53
'date': 'Dec. 26th, 2019',
54
'content': "Breaking news: the squad is in shambles."
55
}, {
56
'author':
57
'Blendoit',
58
'date':
59
'Dec. 25th, 2019',
60
'content':
61
"Ah, this is a public personal update.\n It's pretty long, because this enables testing layouts that adapt to posts with a lot of content. Do we want the content to wrap around? Should we implement a content clipping feature?"
62
}, {
63
'author': 'Country_V',
64
'date': 'Dec. 24th, 2019',
65
'content': "This is a second public personal update."
66
}, {
67
'author': 'CNN',
68
'date': 'Dec. 26th, 2019',
69
'content': "Breaking news: the squad is in shambles."
70
}, {
71
'author': 'Blendoit',
72
'date': 'Dec. 25th, 2019',
73
'content': "Ah, this is a public personal update."
74
}, {
75
'author': 'Country_V',
76
'date': 'Dec. 24th, 2019',
77
'content': "This is a second public personal update."
78
}, {
79
'author': 'CNN',
80
'date': 'Dec. 26th, 2019',
81
'content': "Breaking news: the squad is in shambles."
82
}, {
83
'author': 'Blendoit',
84
'date': 'Dec. 25th, 2019',
85
'content': "Ah, this is a public personal update."
86
}, {
87
'author': 'Country_V',
88
'date': 'Dec. 24th, 2019',
89
'content': "This is a second public personal update."
90
}, {
91
'author': 'Country_V',
92
'date': 'Dec. 24th, 2019',
93
'content': "This is a second public personal update."
94
}, {
95
'author': 'CNN',
96
'date': 'Dec. 26th, 2019',
97
'content': "Breaking news: the squad is in shambles."
98
}, {
99
'author': 'Blendoit',
100
'date': 'Dec. 25th, 2019',
101
'content': "Ah, this is a public personal update."
102
}, {
103
'author': 'Country_V',
104
'date': 'Dec. 24th, 2019',
105
'content': "This is a second public personal update."
106
}, {
107
'author': 'CNN',
108
'date': 'Dec. 26th, 2019',
109
'content': "Breaking news: the squad is in shambles."
110
}, {
111
'author': 'Blendoit',
112
'date': 'Dec. 25th, 2019',
113
'content': "Ah, this is a public personal update."
114
}, {
115
'author': 'Country_V',
116
'date': 'Dec. 24th, 2019',
117
'content': "This is a second public personal update."
118
}]
119