This commit is contained in:
Team3
2026-07-26 20:53:01 +02:00
parent ebfb2fc360
commit 0115fd4ce9
13 changed files with 264 additions and 321 deletions

View File

@@ -63,11 +63,11 @@ def _folge_titel(datei, titel: str):
def speichern(projekt: str, id: str, roh: str) -> dict:
datei = _datei(projekt, id)
datei.write_text(roh)
titel = parser.zerlege(roh)["titel"]
if titel:
datei = _folge_titel(datei, titel)
return _eintrag(datei)
if not titel:
raise ValueError("Titel fehlt")
datei.write_text(roh)
return _eintrag(_folge_titel(datei, titel))
def loeschen(projekt: str, id: str):