From 02cdbbf10057859c87d071c6b1e2a7d1d9acbc1a Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Sun, 9 Oct 2022 18:25:37 +0800 Subject: [PATCH] Fix bug --- api/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/operation.py b/api/operation.py index a10e413..48482fa 100644 --- a/api/operation.py +++ b/api/operation.py @@ -14,7 +14,7 @@ def _remove_operation(name: str, id: int) -> None: if row != None: raise Exception('Disallow to remove parent operation !') - sql += f'delete from snapshot_operation where id = {id};' + sql = f'delete from snapshot_operation where id = {id};' sql += f'delete from operation where id = {id}' write(name, sql)