修改--修改requirement.txt文件,删除不必要的头文件, 修改数据库配置.
This commit is contained in:
parent
f744c68980
commit
703f579cf6
@ -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
|
||||
|
||||
@ -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" # 测试数据库
|
||||
|
||||
@ -44,3 +44,7 @@
|
||||
|
||||
- 修改 /events/getMonitor 接口返回参数
|
||||
- 修改 /event/getRobotList接口, 添加返回参数 tag, tag=0 无告警, tag=1 有一级告警(高温感知报警), tag=2 有二级告警(其余告警).
|
||||
|
||||
# 20260616
|
||||
|
||||
- 修改 requirement.txt文件,删除不必要的头文件, 修改数据库配置.
|
||||
|
||||
@ -2,4 +2,5 @@ sqlalchemy
|
||||
pymysql
|
||||
pydantic-settings
|
||||
aiomysql
|
||||
aiofiles
|
||||
aiofiles
|
||||
requrests
|
||||
Loading…
Reference in New Issue
Block a user