WIP- AI-Writer and Web research, Working on packaging.

This commit is contained in:
AjaySi
2024-03-12 15:58:42 +05:30
parent f65ec24da4
commit 3a28ecc50d
5 changed files with 69 additions and 30 deletions

View File

@@ -304,7 +304,7 @@ def save_in_file(table_content):
file_path = os.environ.get('SEARCH_SAVE_FILE')
try:
# Save the content to the file
with open(file_path, "a") as file:
with open(file_path, "a+") as file:
file.write(table_content)
file.write("\n" * 3) # Add three newlines at the end
logger.info(f"Search content saved to {file_path}")