Fehler bei Inhaltwelcome behoben

This commit is contained in:
hubobel 2026-01-01 16:40:03 +01:00
parent e47b175033
commit dd9949b143
11 changed files with 33 additions and 48 deletions

View file

@ -579,9 +579,10 @@ if debug == False:
metar = metarCabin.choices[0].message.content
metar = "\n".join(filter(None, map(str.strip, metar.splitlines())))
logging.info("METAR erzeugt")
welcomePilot = WelcomePilot()
Inhalt = welcomePilot.choices[0].message.content
Inhalt = "\n".join(filter(None, map(str.strip, Inhalt.splitlines())))
Inhaltwelcome = welcomePilot.choices[0].message.content
Inhaltwelcome = "\n".join(filter(None, map(str.strip, Inhaltwelcome.splitlines())))
logging.info("WelcomePilot erzeugt")
InhaltCruise10 = CruiseElapsed10Percent().choices[0].message.content
@ -651,6 +652,12 @@ if debug == False:
pfad_ogg = pfad_txt.with_suffix(".ogg")
delete(pfad_ogg)
Pfad = Pfad_wd + 'BoardingWelcomePilot.txt'
txtSave(Pfad, Inhaltwelcome)
pfad_txt = Path(Pfad_wd) / 'BoardingWelcomePilot.txt'
pfad_ogg = pfad_txt.with_suffix(".ogg")
delete(pfad_ogg)