Skip to content

Commit 55eb525

Browse files
Feat: rename file to avoid package name conflict (infiniflow#10863)
### What problem does this PR solve? Feat: rename file to avoid package name conflict ### Type of change - [x] Refactoring
1 parent 4e69100 commit 55eb525

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

api/apps/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from api.db import StatusEnum
2828
from api.db.db_models import close_connection
2929
from api.db.services import UserService
30-
from api.utils.json import CustomJSONEncoder
30+
from api.utils.json_encode import CustomJSONEncoder
3131
from api.utils import commands
3232

3333
from flask_mail import Mail

api/db/db_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
from api import settings, utils
3434
from api.db import ParserType, SerializedType
35-
from api.utils.json import json_dumps, json_loads
35+
from api.utils.json_encode import json_dumps, json_loads
3636
from api.utils.configs import deserialize_b64, serialize_b64
3737

3838
from common.time_utils import current_timestamp, timestamp_to_date, date_string_to_timestamp

api/utils/api_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
from api.constants import REQUEST_MAX_WAIT_SEC, REQUEST_WAIT_SEC
5252
from api.db import ActiveEnum
5353
from api.db.db_models import APIToken
54-
from api.utils.json import CustomJSONEncoder, json_dumps
54+
from api.utils.json_encode import CustomJSONEncoder, json_dumps
5555
from api.utils import get_uuid
5656
from rag.utils.mcp_tool_call_conn import MCPToolCallSession, close_multiple_mcp_toolcall_sessions
5757

0 commit comments

Comments
 (0)