Leider Kein plan was ich gemacht habLeider Kein plan was ich gemacht habe
This commit is contained in:
parent
69d08784d8
commit
587f2546f9
2 changed files with 7 additions and 3 deletions
6
app.py
6
app.py
|
|
@ -50,10 +50,14 @@ def datei(id):
|
|||
file = glob("static/"+id+".*")
|
||||
if file != []:
|
||||
audio = file[0].replace("static/", "")
|
||||
return audio
|
||||
else:
|
||||
audio = None
|
||||
print(audio)
|
||||
return audio
|
||||
|
||||
def kartenGeneriren(song):
|
||||
id = song["wikiid"]
|
||||
print(id)
|
||||
statements = wikiapi(id,"statements")
|
||||
labels = wikiapi(id,"labels")
|
||||
song["titel"] = statements.get("P1476",[{"value": {"content":{"text":labels["en"]}}}])[0]["value"]["content"]["text"]
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@
|
|||
{% if karte.plazirung%}
|
||||
<p><b>Plazirung:</b> {{ karte.plazirung }}</p>
|
||||
{% endif %}
|
||||
<p><b>Länge:</b> {{karte.laenge|zeit}}</p>
|
||||
<p><b id = "kursive">Interesanter</b><b> Fakt:</b> {{ karte.interesanterfakt }}</p>
|
||||
<p><b>Länge:</b> {{karte.laenge|zeit}}</p>
|
||||
<p><a href="https://www.wikidata.org/entity/{{karte.wikiid}}">Q-id:</a> {{karte.wikiid}}</p>
|
||||
{% if karte.text %}
|
||||
<a href="{{ karte.text }}" target="_blank">Original Text</a>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue