update
This commit is contained in:
parent
3a8a98a874
commit
4252956d51
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,12 +1,6 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
import uvicorn
|
||||
from db.models.base import BaseResponse
|
||||
from db.models.log_data_model import LOT_DATA, LOT_DATA_MODEL
|
||||
from db.repository import add_kb_to_db, get_kb_detail, get_kb_detail_by_time, delete_kb_detail_by_time
|
||||
|
||||
from fastapi import FastAPI
|
||||
from src.db.models.base import BaseResponse
|
||||
from src.db.models.log_data_model import LOT_DATA
|
||||
from src.db.repository import add_kb_to_db, get_kb_detail, delete_kb_detail_by_time
|
||||
|
||||
|
||||
def add(data: LOT_DATA):
|
|
@ -1,12 +1,9 @@
|
|||
from datetime import datetime
|
||||
from typing import Any, List
|
||||
from typing import Any
|
||||
|
||||
import pydantic
|
||||
from pydantic import BaseModel
|
||||
from sqlalchemy import Column, DateTime, String, Integer
|
||||
|
||||
from db.models.log_data_model import LOT_DATA_MODEL, LOT_DATA
|
||||
|
||||
|
||||
class BaseResponse(BaseModel):
|
||||
code: int = 200
|
|
@ -1,6 +1,6 @@
|
|||
from pydantic import BaseModel, Field
|
||||
from sqlalchemy import *
|
||||
from db.base import Base
|
||||
from src.db.base import Base
|
||||
|
||||
|
||||
class LOT_DATA(BaseModel):
|
|
@ -1,7 +1,5 @@
|
|||
import time
|
||||
|
||||
from db.models.log_data_model import LOT_DATA_MODEL, LOT_DATA
|
||||
from db.session import with_session
|
||||
from src.db.models.log_data_model import LOT_DATA_MODEL, LOT_DATA
|
||||
from src.db.session import with_session
|
||||
|
||||
|
||||
@with_session
|
|
@ -1,6 +1,6 @@
|
|||
from functools import wraps
|
||||
from contextlib import contextmanager
|
||||
from db.base import SessionLocal
|
||||
from src.db.base import SessionLocal
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
|
Loading…
Reference in New Issue