Skip to content

Commit

Permalink
revert changes in legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Apr 2, 2024
1 parent 1efeff8 commit e254ab3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ def __init__(
**kwargs: Any,
) -> None:
try:
import falkordb
import redis
except ImportError:
raise ImportError("Please install falkordb client: pip install falkordb")
raise ImportError("Please install redis client: pip install redis")

"""Initialize params."""
self._node_label = node_label

self._driver = falkordb.FalkorDB.from_url(url).select_graph(database)
self._driver = redis.Redis.from_url(url).graph(database)
self._driver.query(f"CREATE INDEX FOR (n:`{self._node_label}`) ON (n.id)")

self._database = database
Expand Down

0 comments on commit e254ab3

Please sign in to comment.