Add api to query type

This commit is contained in:
wqy
2022-09-02 19:01:59 +08:00
parent d90f7d6f8e
commit 49bea820b8
3 changed files with 37 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ def _query_redo(name: str, id: str) -> dict[str, str]:
cur.execute(f"select redo from operation where id = {id}")
return cur.fetchone()['redo']
def _set_redo_child(name: str, id: str, child:str) -> None:
def _set_redo_child(name: str, id: str, child: str) -> None:
with conn[name].cursor() as cur:
cur.execute(f"update operation set redo_child = {child} where id = {id}")