getescedition fix 1.1

This commit is contained in:
mikka 2026-05-16 19:13:59 +02:00
parent ebc8c4749f
commit 047130e648
2 changed files with 3 additions and 3 deletions

2
app.py
View file

@ -56,7 +56,7 @@ def wikisuche(text):
def getescedition(songId):
statements = wikiapi(songId, "statements")
if "P1344" in statements:
for statement in statements["partsin"]:
for statement in statements["P1344"]:
id = statement["value"]["content"]
escdata = wikiapi(id, "statements")
if escdata["P31"][0]["value"]["content"] == "Q110288240":