mc
This commit is contained in:
@@ -157,9 +157,9 @@ def get_notes_containing(patterns: Union[list[str], str]) -> str:
|
||||
return ret
|
||||
|
||||
@tool
|
||||
def write_note(command: str) -> str:
|
||||
def write_note(note: str) -> str:
|
||||
"""Write a not with the current time to the database."""
|
||||
return command
|
||||
return "Written."
|
||||
|
||||
@tool
|
||||
def save_python_repl(command: str):
|
||||
@@ -171,6 +171,7 @@ def save_python_repl(command: str):
|
||||
"^ *subprocess\\.",
|
||||
"^ *(with)? ?open\\(",
|
||||
"^ *shutil\\.",
|
||||
"^ *requests\\.",
|
||||
]
|
||||
valid = True
|
||||
for pattern in blocked_patterns:
|
||||
|
||||
Reference in New Issue
Block a user