更新配置文件,移除重复定义的DATA_FILE,优化数据上传路由中的时间处理

This commit is contained in:
xiaozhou233 committed 2026-06-30 22:07:09 +08:00
1 parent 83b724598a
commit 4881794e2d
3 files changed
+9 -8

No files matched your search

+2 -5
View File
@@ -1,12 +1,9 @@
import csv
import os
from collections import deque
from config import *
###
DATA_FILE = "database.csv"
###
# time, ph, tds, turbidity
# 表头: time, ph, tds, turbidity
# 插入数据
def insert_data(time, ph, tds, turbidity):