Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed Oct 23, 2024
1 parent cf3e7e0 commit 569e6b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions libs/checkpoint-duckdb/langgraph/store/duckdb/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,8 @@ def _get_batch_search_queries(
if op.filter:
filter_conditions = []
for key, value in op.filter.items():
if isinstance(value, list):
filter_conditions.append(f"json_extract(value, '$.{key}') = ?")
params.append(json.dumps(value))
else:
filter_conditions.append(f"json_extract(value, '$.{key}') = ?")
params.append(json.dumps(value))
filter_conditions.append(f"json_extract(value, '$.{key}') = ?")
params.append(json.dumps(value))
query += " AND " + " AND ".join(filter_conditions)

query += " ORDER BY updated_at DESC LIMIT ? OFFSET ?"
Expand Down
2 changes: 1 addition & 1 deletion libs/checkpoint-duckdb/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-checkpoint-duckdb"
version = "1.0.0"
version = "2.0.0"
description = "Library with a DuckDB implementation of LangGraph checkpoint saver."
authors = []
license = "MIT"
Expand Down

0 comments on commit 569e6b6

Please sign in to comment.