diff --git a/app/app.py b/app/app.py index 8f15692..807d3a4 100644 --- a/app/app.py +++ b/app/app.py @@ -152,7 +152,7 @@ def appsobservatory_history(): @main.route('/appsobservatory/news') def appsobservatory_news(): news_per_date = json.loads(open("./app/scripts/appListsHistory/news.json").read()) - return render_template('applist_news.html', news_per_date=reversed(news_per_date.items())) + return render_template('applist_news.html', news_per_date=list(reversed(list(news_per_date.items())))) @main.route('/appsobservatory/unlisted') diff --git a/app/templates/applist_news.html b/app/templates/applist_news.html new file mode 100644 index 0000000..f08d6ad --- /dev/null +++ b/app/templates/applist_news.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} +{% block content %} + +
+
+ + {% for date, news in news_per_date %} + +

{{ date }}

+ + + + {% endfor %} + +
+
+ +{% endblock %}