a small fix done of many to do

This commit is contained in:
crunk 2022-02-13 22:32:48 +01:00
parent 0cd5278272
commit 9d3978258d
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ def index():
distribusies = {}
for distribusi in distribusis:
user = User.query.filter_by(id=distribusi.userid).first()
distribusies.update({user.email: distribusi.distribusiname})
distribusies[distribusi.distribusiname] = user.email
return render_template("index.html", distribusies=distribusies)

View File

@ -44,7 +44,7 @@
<h2>List of distribusis</h2>
<ul>
{% for distribusi in distribusies %}
<li>{{distribusi}}: <a href="stash/{{distribusies[distribusi]}}/index.html">{{distribusies[distribusi]}}</a></li>
<li>{{distribusies[distribusi]}}: <a href="stash/{{distribusi}}/index.html">{{distribusi}}</a></li>
{% endfor%}
</ul>
</div>