Skip to content

Commit

Permalink
chore: run format + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amiaxys committed Nov 27, 2023
1 parent 9564c1f commit 9972554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/langchain/langchain/utilities/mongo_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import re
from ast import literal_eval
from pprint import pformat, pprint
from pprint import pformat
from typing import Any, Iterable, List, Optional

from pymongo import MongoClient
Expand Down Expand Up @@ -176,7 +176,7 @@ def _execute(self, command: str) -> dict[str, Any]:

# checks if command is a find query
if not result and re.match(r"^db\.\w+\.find\w*\(\{.*\}\)", command):
cursor = eval(command) # dangerous, might need to find a better solution
cursor = eval(command) # dangerous, might need to find a better solution
result_list = []
for doc in cursor:
result_list.append(doc)
Expand Down

0 comments on commit 9972554

Please sign in to comment.