.yaml changes to add project

controller changes to add project in creation / updates
This commit is contained in:
2025-05-26 14:24:01 +02:00
parent b1013ea1c1
commit de15af4302
6 changed files with 106 additions and 62 deletions
@@ -37,7 +37,7 @@ def create_patchnote(body): # noqa: E501
pn = PatchNotes.from_dict(body)
# --- Datum wahlweise als str oder date annehmen ---
# --- Datum wahlweise als str oder Date annehmen ---
if isinstance(pn.patch_date, date):
date_str = pn.patch_date.isoformat()
else:
@@ -56,6 +56,7 @@ def create_patchnote(body): # noqa: E501
"changes": pn.changes,
"version": pn.version,
"patch_date": date_str,
"project": pn.project
}
collection.insert_one(patch_doc)
@@ -199,6 +200,7 @@ def update_patchnote(patch_id, body): # noqa: E501
"changes": pn.changes,
"version": pn.version,
"patch_date": date_str, # richtiger Feldname!
"project": pn.project,
}}
)