Order demand, pattern and curve

This commit is contained in:
WQY\qiong
2022-10-29 09:11:27 +08:00
parent 89cc1acc66
commit 2f26cb58ad
6 changed files with 9 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ def get_curve_schema(name: str) -> dict[str, dict[str, Any]]:
def get_curve(name: str, id: str) -> dict[str, Any]:
cus = read_all(name, f"select * from curves where id = '{id}'")
cus = read_all(name, f"select * from curves where id = '{id}' order by _order")
cs = []
for r in cus:
cs.append({ 'x': float(r['x']), 'y': float(r['y']) })