From 0832e557fe3adf03ee0c8beafb930a7ef4a22ab4 Mon Sep 17 00:00:00 2001 From: wqy Date: Sat, 3 Sep 2022 10:27:51 +0800 Subject: [PATCH] Update comment --- api/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/operation.py b/api/operation.py index cedb82c..335fee1 100644 --- a/api/operation.py +++ b/api/operation.py @@ -16,7 +16,7 @@ def _remove_transaction(name: str) -> None: def _remove_operation(name: str, id: int) -> None: with conn[name].cursor(row_factory=dict_row) as cur: - # can not be >= since there is a tree ! + # can not be >= to cascade delete since there is a tree ! cur.execute(f"delete from transaction_operation where id = {id}") # this should not happen cur.execute(f"delete from snapshot_operation where id = {id}") # this may happen cur.execute(f"delete from operation where id = {id}")