-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2041152
commit 4dc9b95
Showing
4 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
backend/repository/knowledge/remove_brain_all_knowledge.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from uuid import UUID | ||
|
||
from logger import get_logger | ||
from models.settings import get_supabase_db | ||
|
||
logger = get_logger(__name__) | ||
|
||
|
||
def remove_brain_all_knowledge(brain_id: UUID) -> None: | ||
supabase_db = get_supabase_db() | ||
|
||
supabase_db.remove_brain_all_knowledge(brain_id) | ||
|
||
logger.info(f"All knowledge in brain {brain_id} removed successfully from table") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters