Compare commits

..

2 commits

Author SHA1 Message Date
38c2414954 0.2 2024-05-04 17:13:44 +02:00
c89dd7dc6e Gracefully handle words without audio 2024-05-04 17:13:44 +02:00

View file

@ -139,7 +139,7 @@ def einzelne_abfrage(palabra, status):
case 4: bien = Resultado.BIEN if resultado < 1 else Resultado.MAL
if 'audio' in palabra:
print(f" {bcolors.LINK_START}file://{AUDIO_BASE}{palabra['audio']}.aac{bcolors.LINK_MIDDLE}",end="")
else
else:
print(" ",end="")
if bien == Resultado.CORRECTO:
print(f"{bcolors.OKGREEN}{bcolors.ENDC}",end="")