Implement AI workspace and mitigation workflow
This commit is contained in:
@@ -12,9 +12,10 @@ def messages_to_string(messages: list):
|
||||
]
|
||||
return "\n".join(message_texts)
|
||||
|
||||
|
||||
async def update_last_interaction(session):
|
||||
now = timezone.now()
|
||||
session.identifier.person.last_interaction = now
|
||||
session.last_interaction = now
|
||||
await sync_to_async(session.identifier.person.save)()
|
||||
await sync_to_async(session.save)()
|
||||
await sync_to_async(session.save)()
|
||||
|
||||
Reference in New Issue
Block a user