mirror of
				https://github.com/clearml/clearml-server
				synced 2025-06-26 23:15:47 +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()
 | 
			
		||||
    more_updates = {"last_change": now, "last_changed_by": call.identity.user}
 | 
			
		||||
    if not allowed_for_published:
 | 
			
		||||
        more_updates["last_update"] = now
 | 
			
		||||
    more_updates = {
 | 
			
		||||
        "last_change": now,
 | 
			
		||||
        "last_changed_by": call.identity.user,
 | 
			
		||||
        "last_update": now,
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    updated = task.update(upsert=False, **partial_update_dict, **more_updates)
 | 
			
		||||
    if not updated:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user