Skip to content

Commit

Permalink
File size bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
luciferlinx101 committed Jun 2, 2023
1 parent 3df957d commit bacdcad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion superagi/models/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
def connectDB():
global engine
if engine != None:
print("Engine returned")
return engine


Expand Down
1 change: 1 addition & 0 deletions superagi/tools/file/write_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def _execute(self, file_name: str, content: str, agent_id: int):
try:
with open(final_path, 'w', encoding="utf-8") as file:
file.write(content)
file.close()
resource = make_written_file_resource(file_name=file_name,
agent_id=agent_id)
if resource is not None:
Expand Down

0 comments on commit bacdcad

Please sign in to comment.