feat(sqlalchemy): format backend

This commit is contained in:
Jonathan Rohde
2024-06-27 07:48:08 +02:00
parent 2fb27adbf6
commit d88bd51e3c
8 changed files with 153 additions and 142 deletions
+1 -3
View File
@@ -115,9 +115,7 @@ class MemoriesTable:
except:
return False
def delete_memory_by_id_and_user_id(
self, id: str, user_id: str
) -> bool:
def delete_memory_by_id_and_user_id(self, id: str, user_id: str) -> bool:
try:
Session.query(Memory).filter_by(id=id, user_id=user_id).delete()
return True