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}")