update
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user