Kleine veränderung

This commit is contained in:
mikka 2026-04-20 22:02:17 +02:00
parent 46e9d5c40d
commit f3d0f6bd7b
4 changed files with 31 additions and 5 deletions

2
app.py
View file

@ -146,7 +146,7 @@ def suche_finden():
print(liste) print(liste)
with open(liste+".json","w") as f: with open(liste+".json","w") as f:
json.dump(songs,f,indent=2,ensure_ascii=False) json.dump(songs,f,indent=2,ensure_ascii=False)
return redirect("/?liste="+liste,303) return redirect("/suche?liste="+liste,303)
@app.route("/ADMIN") @app.route("/ADMIN")
def admin(): def admin():

View file

@ -1 +1,8 @@
<style>
form{
display: block;
text-align: center;
color: black;
}
</style>
<form><input name="name" value={{name}} placeholder="Name der Playlist"></form> <form><input name="name" value={{name}} placeholder="Name der Playlist"></form>

View file

@ -1,6 +1,18 @@
<ul> <style>
#playlist{
display: block;
text-align: center;
font-size: large;
color: black;
}
a{
color: black;
display: block;
text-align: center;
font-size: smaller;
}
</style>
{% for list in lists %} {% for list in lists %}
<li><a href="/?liste={{list}}">{{list}}</a></li> <a id="playlist" href="/?liste={{list}}"> {{list}} </a>
{% endfor %} {% endfor %}
</ul>
<a href="/neueliste">Lust auf was neues?</a> <a href="/neueliste">Lust auf was neues?</a>

View file

@ -1,3 +1,10 @@
<style>
form,a{
display: block;
text-align: center;
color: black;
}
</style>
{% if liste == empty %} {% if liste == empty %}
<p>Du musst etwas in die Playlist Screiben</p> <p>Du musst etwas in die Playlist Screiben</p>
{% endif %} {% endif %}
@ -12,4 +19,4 @@
<p>Leider gibt es den Eintrag {{anfrage}} nicht!</p> <p>Leider gibt es den Eintrag {{anfrage}} nicht!</p>
{%endif%} {%endif%}
<a href="/">Doch nicht?</a> <a href="/?liste={{liste}}">Doch nicht?</a>