diff --git a/app/api/v1/endpoints/events.py b/app/api/v1/endpoints/events.py index c5413ed..1951278 100644 --- a/app/api/v1/endpoints/events.py +++ b/app/api/v1/endpoints/events.py @@ -1,7 +1,7 @@ from operator import and_, ge from typing import List, Optional from fastapi import APIRouter, Depends, HTTPException, Query, Body -from paddle import normal +# from paddle import normal from sqlalchemy.ext.asyncio import AsyncSession from app.core.database import get_db from app.crud.event import event diff --git a/app/core/config.py b/app/core/config.py index c45f1ce..e6813de 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -2,12 +2,12 @@ from pydantic_settings import BaseSettings class Settings(BaseSettings): # 数据库配置 - # DB_HOST: str = "14.103.162.172" - DB_HOST: str = "10.0.0.17" + DB_HOST: str = "14.103.162.172" + # DB_HOST: str = "10.0.0.17" DB_PORT: int = 3306 DB_USER: str = "root" - # DB_PASSWORD: str = "dnxxkj" - DB_PASSWORD: str = "root" + DB_PASSWORD: str = "dnxxkj" + # DB_PASSWORD: str = "root" DB_NAME: str = "kangda" # DB_NAME: str = "kangda_test" # 测试数据库 diff --git a/change_log.md b/change_log.md index 7b20b83..d201afd 100644 --- a/change_log.md +++ b/change_log.md @@ -44,3 +44,7 @@ - 修改 /events/getMonitor 接口返回参数 - 修改 /event/getRobotList接口, 添加返回参数 tag, tag=0 无告警, tag=1 有一级告警(高温感知报警), tag=2 有二级告警(其余告警). + +# 20260616 + +- 修改 requirement.txt文件,删除不必要的头文件, 修改数据库配置. diff --git a/requirements.txt b/requirements.txt index 7c7f76b..279c4e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,5 @@ sqlalchemy pymysql pydantic-settings aiomysql -aiofiles \ No newline at end of file +aiofiles +requrests \ No newline at end of file