.yaml changes to add project
controller changes to add project in creation / updates
This commit is contained in:
@@ -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,
|
||||
}}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user