update
This commit is contained in:
parent
9ff77b1340
commit
c6af7a38fa
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,6 +1,6 @@
|
|||
from pydantic import BaseModel, Field
|
||||
from sqlalchemy import *
|
||||
from src.db.base import Base
|
||||
from db.base import Base
|
||||
|
||||
|
||||
class LOT_DATA(BaseModel):
|
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
from src.db.models.log_data_model import LOT_DATA_MODEL, LOT_DATA
|
||||
from src.db.session import with_session
|
||||
from db.models.lot_data_model import LOT_DATA_MODEL, LOT_DATA
|
||||
from db.session import with_session
|
||||
|
||||
|
||||
@with_session
|
|
@ -1,6 +1,6 @@
|
|||
from functools import wraps
|
||||
from contextlib import contextmanager
|
||||
from src.db.base import SessionLocal
|
||||
from db.base import SessionLocal
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
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
|
||||
from db.models.base import BaseResponse
|
||||
from db.repository import add_kb_to_db, get_kb_detail, delete_kb_detail_by_time
|
||||
from db.models.lot_data_model import LOT_DATA
|
||||
|
||||
|
||||
def add(data: LOT_DATA):
|
|
@ -3,7 +3,7 @@ import time
|
|||
|
||||
import serial
|
||||
|
||||
from db.api import add
|
||||
from src.api import add
|
||||
from db.models.log_data_model import LOT_DATA
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -6,8 +6,8 @@ import time
|
|||
import serial
|
||||
import paho.mqtt.client as mqtt
|
||||
|
||||
from db.api import add
|
||||
from db.models.log_data_model import LOT_DATA
|
||||
from api import add
|
||||
from db.models.lot_data_model import LOT_DATA
|
||||
|
||||
|
||||
def t():
|
||||
|
|
Loading…
Reference in New Issue