chore: bump minimum supported Python version to 3.11 (#10386)
This commit is contained in:
parent
0181f1c08c
commit
6c8e208ef3
81 changed files with 271 additions and 300 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from datetime import datetime, timezone
|
||||
from datetime import UTC, datetime
|
||||
from typing import Optional, Union
|
||||
|
||||
from sqlalchemy import asc, desc, or_
|
||||
|
|
@ -104,7 +104,7 @@ class ConversationService:
|
|||
return cls.auto_generate_name(app_model, conversation)
|
||||
else:
|
||||
conversation.name = name
|
||||
conversation.updated_at = datetime.now(timezone.utc).replace(tzinfo=None)
|
||||
conversation.updated_at = datetime.now(UTC).replace(tzinfo=None)
|
||||
db.session.commit()
|
||||
|
||||
return conversation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue