|
@@ -154,8 +154,9 @@ class Content(Resource):
|
|
|
results = self._get_contents()
|
|
|
|
|
|
x = list(results)
|
|
|
+ print(type(x), type(results))
|
|
|
+ x.sort(key = lambda k: k["date"], reverse=True)
|
|
|
|
|
|
- #sortedData = sorted(list(results()), key=lambda x:x['date'], reverse=True)
|
|
|
return x
|
|
|
|
|
|
def post(self):
|