Skip to content

Commit 27d0cde

Browse files
committed
fix: bug in nebula get_by_metadata
1 parent 7237e87 commit 27d0cde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/memos/graph_dbs/nebular.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,8 @@ def get_by_metadata(self, filters: list[dict[str, Any]]) -> list[str]:
830830

831831
def _escape_value(value):
832832
if isinstance(value, str):
833-
return f'"{value}"'
833+
escaped = value.replace('"', '\\"')
834+
return f'"{escaped}"'
834835
elif isinstance(value, list):
835836
return "[" + ", ".join(_escape_value(v) for v in value) + "]"
836837
else:

0 commit comments

Comments
 (0)