mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-06 08:01:31 +00:00
timestamp log fix
This commit is contained in:
parent
ea078affac
commit
7dcfd6af6a
2 changed files with 9 additions and 6 deletions
|
|
@ -137,8 +137,8 @@ class LogItem:
|
|||
agent_number: int = 0 # Agent number (0 = main agent, 1+ = subordinate agents)
|
||||
|
||||
def __post_init__(self):
|
||||
self.guid = self.log.guid
|
||||
self.timestamp = time.time()
|
||||
self.guid = self.guid or self.log.guid
|
||||
self.timestamp = self.timestamp or time.time()
|
||||
|
||||
def update(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue