diff --git a/db/__pycache__/session.cpython-310.pyc b/db/__pycache__/session.cpython-310.pyc index 58f58b7..86394ab 100644 Binary files a/db/__pycache__/session.cpython-310.pyc and b/db/__pycache__/session.cpython-310.pyc differ diff --git a/db/models/__pycache__/base.cpython-310.pyc b/db/models/__pycache__/base.cpython-310.pyc index 609622d..f29d2db 100644 Binary files a/db/models/__pycache__/base.cpython-310.pyc and b/db/models/__pycache__/base.cpython-310.pyc differ diff --git a/db/models/__pycache__/lot_data_model.cpython-310.pyc b/db/models/__pycache__/lot_data_model.cpython-310.pyc index 97044d2..7ced2c6 100644 Binary files a/db/models/__pycache__/lot_data_model.cpython-310.pyc and b/db/models/__pycache__/lot_data_model.cpython-310.pyc differ diff --git a/db/repository/__pycache__/lot_data_repository.cpython-310.pyc b/db/repository/__pycache__/lot_data_repository.cpython-310.pyc index d430080..47cfc55 100644 Binary files a/db/repository/__pycache__/lot_data_repository.cpython-310.pyc and b/db/repository/__pycache__/lot_data_repository.cpython-310.pyc differ diff --git a/src/sensor_to_local.py b/src/sensor_to_local.py index 8e25a1a..79f644b 100644 --- a/src/sensor_to_local.py +++ b/src/sensor_to_local.py @@ -3,8 +3,8 @@ import time import serial +from db.models.lot_data_model import LOT_DATA from src.api import add -from db.models.log_data_model import LOT_DATA if __name__ == '__main__': temp_send = '06 03 01 F4 00 02 85 B2 ' # 温湿度查询指令 diff --git a/src/sensor_to_server.py b/src/sensor_to_server.py index 6046279..d57895f 100644 --- a/src/sensor_to_server.py +++ b/src/sensor_to_server.py @@ -6,7 +6,7 @@ import time import serial import paho.mqtt.client as mqtt -from api import add +from src.api import add from db.models.lot_data_model import LOT_DATA