mirror of
https://github.com/clearml/clearml-server
synced 2025-06-26 23:15:47 +00:00
Fix task and model last_change handling
Improve db model index Improve db model infrastructure
This commit is contained in:
@@ -127,7 +127,11 @@ class ProjectBLL:
|
||||
project_name=project_name,
|
||||
description="Auto-generated during move",
|
||||
)
|
||||
|
||||
entity_cls.objects(company=company, id__in=ids).update(set__project=project)
|
||||
extra = (
|
||||
{"set__last_change": datetime.utcnow()}
|
||||
if hasattr(entity_cls, "last_change")
|
||||
else {}
|
||||
)
|
||||
entity_cls.objects(company=company, id__in=ids).update(set__project=project, **extra)
|
||||
|
||||
return project
|
||||
|
||||
Reference in New Issue
Block a user