From 703f579cf6af410f86c267180be6e31022ab8d3a Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Mon, 16 Jun 2025 10:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9--=E4=BF=AE=E6=94=B9requireme?= =?UTF-8?q?nt.txt=E6=96=87=E4=BB=B6,=E5=88=A0=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E5=A4=B4=E6=96=87=E4=BB=B6,=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/v1/endpoints/events.py | 2 +- app/core/config.py | 8 ++++---- change_log.md | 4 ++++ requirements.txt | 3 ++- 4 files changed, 11 insertions(+), 6 deletions(-) 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