Fix filtering on ns

This commit is contained in:
Nuno Campos
2024-08-27 16:09:11 -07:00
parent 499fe10ef2
commit e338a4ec98
3 changed files with 8 additions and 3 deletions
@@ -70,7 +70,8 @@ def search_where(
if config is not None:
wheres.append("thread_id = ?")
param_values.append(config["configurable"]["thread_id"])
if checkpoint_ns := config["configurable"].get("checkpoint_ns"):
checkpoint_ns = config["configurable"].get("checkpoint_ns")
if checkpoint_ns is not None:
wheres.append("checkpoint_ns = ?")
param_values.append(checkpoint_ns)