Update app.py
Browse files
app.py
CHANGED
@@ -352,7 +352,7 @@ class Process_user(BaseModel): # 接口数据类型
|
|
352 |
async def process_user(user: Process_user):
|
353 |
mode = user.mode # 选择的井间连通模式
|
354 |
df_inside = pd.read_csv(
|
355 |
-
"./
|
356 |
df_user = json2df(user.data)
|
357 |
abnormal = user.abnormal[0]
|
358 |
miss = user.miss[0]
|
|
|
352 |
async def process_user(user: Process_user):
|
353 |
mode = user.mode # 选择的井间连通模式
|
354 |
df_inside = pd.read_csv(
|
355 |
+
"./mode_{}.csv".format(mode)).dropna(axis=0) # 连通模式对应的内置数据
|
356 |
df_user = json2df(user.data)
|
357 |
abnormal = user.abnormal[0]
|
358 |
miss = user.miss[0]
|