fix: delete
This commit is contained in:
1 parent
0d70d7c9ac
commit
c9b85bd4a2
10 files changed
+32
-2
No files matched your search
@@ -267,9 +267,10 @@ class FunctionsTable:
|
||||
|
||||
def delete_function_by_id(self, id: str) -> bool:
|
||||
with get_db() as db:
|
||||
|
||||
try:
|
||||
db.query(Function).filter_by(id=id).delete()
|
||||
db.commit()
|
||||
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user