袁聪的最后一次完善更新
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
import re
|
||||
from collections.abc import Callable
|
||||
from contextlib import AbstractAsyncContextManager
|
||||
from datetime import UTC, datetime, timedelta
|
||||
from datetime import UTC, date, datetime, timedelta
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
@@ -454,6 +454,8 @@ class FinancialNL2SQLService:
|
||||
converted[key] = str(value)
|
||||
elif isinstance(value, datetime):
|
||||
converted[key] = value.isoformat(sep=" ", timespec="seconds")
|
||||
elif isinstance(value, date):
|
||||
converted[key] = value.isoformat()
|
||||
else:
|
||||
converted[key] = value
|
||||
return converted
|
||||
|
||||
Reference in New Issue
Block a user