Refine
This commit is contained in:
@@ -13,4 +13,14 @@ def get_pipe_risk_probability_now(name: str, pipe_id: str) -> dict[str, Any]:
|
||||
|
||||
return d
|
||||
|
||||
def get_pipe_risk_probability(name: str, pipe_id: str) -> dict[str, Any]:
|
||||
t = try_read(name, f"select * from pipe_risk_probability where pipeid = '{pipe_id}'")
|
||||
if t == None:
|
||||
return {}
|
||||
|
||||
d = {}
|
||||
d['pipeid'] = t['pipeid']
|
||||
d['x'] = t['x']
|
||||
d['y'] = t['y']
|
||||
|
||||
return d
|
||||
Reference in New Issue
Block a user