Display genre counts on user_data page

Able to pass dict info successfully from backend to webpage.
This commit is contained in:
2018-05-20 23:11:35 -04:00
parent 6e1671b0f2
commit 96b7bfb2bb
2 changed files with 38 additions and 8 deletions

View File

@@ -14,7 +14,11 @@
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<h1>Logged in as {{ id }}</h1>
<h2>Display name {{ user_name }}</h2>
<p>Logged in as {{ id }}</p>
<ul>
{% for genre_name, genre_count in genre_dict.items %}
<li>{{ genre_name }} - {{ genre_count }}</li>
{% endfor %}
</ul>
</body>
</html>
</html>