Skip to content

Commit

Permalink
remove None check - empty strings would also break the SQL query and …
Browse files Browse the repository at this point in the history
…should be ignored
  • Loading branch information
epistoteles committed Nov 13, 2024
1 parent 4b722a9 commit 3c557e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def _search_where(

# construct predicate for config filter
if config:
if thread_id := config["configurable"].get("thread_id") is not None:
if thread_id := config["configurable"].get("thread_id"):
wheres.append("thread_id = %s")
param_values.append(thread_id)
if checkpoint_ns := config["configurable"].get("checkpoint_ns") is not None:
if checkpoint_ns := config["configurable"].get("checkpoint_ns"):
wheres.append("checkpoint_ns = %s")
param_values.append(checkpoint_ns)
if checkpoint_id := get_checkpoint_id(config):
Expand Down

0 comments on commit 3c557e6

Please sign in to comment.