mirror of
https://github.com/clearml/clearml-server
synced 2025-06-23 08:45:30 +00:00
Report last_update field is now set when changing report name or tags
This commit is contained in:
parent
8a3fcacf5f
commit
1983b22157
@ -99,9 +99,11 @@ def update_report(call: APICall, company_id: str, request: UpdateReportRequest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
now = datetime.utcnow()
|
now = datetime.utcnow()
|
||||||
more_updates = {"last_change": now, "last_changed_by": call.identity.user}
|
more_updates = {
|
||||||
if not allowed_for_published:
|
"last_change": now,
|
||||||
more_updates["last_update"] = now
|
"last_changed_by": call.identity.user,
|
||||||
|
"last_update": now,
|
||||||
|
}
|
||||||
|
|
||||||
updated = task.update(upsert=False, **partial_update_dict, **more_updates)
|
updated = task.update(upsert=False, **partial_update_dict, **more_updates)
|
||||||
if not updated:
|
if not updated:
|
||||||
|
Loading…
Reference in New Issue
Block a user