修改条件存储

This commit is contained in:
wzy-warehouse
2026-06-14 15:52:33 +08:00
parent 5e1dc585d4
commit c375cd33d9
2 changed files with 19 additions and 5 deletions
+2 -1
View File
@@ -100,11 +100,12 @@ async def predict_earthquake(req: EarthquakePredictRequest):
record_id = None
if result_map:
try:
# 存储经过默认值处理的条件(depth 默认值为 10.0)
condition = {
"point_ids": req.point_ids,
"region_code": req.region_code,
"magnitude": req.magnitude,
"depth": req.depth,
"depth": req.depth, # 已有默认值 10.0
"epicenter_lon": req.epicenter_lon,
"epicenter_lat": req.epicenter_lat
}