Skip to content

Commit

Permalink
Fix graph query in Cassandra (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybermaggedon authored Nov 21, 2024
1 parent dc0f54f commit 7a64385
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trustgraph-flow/trustgraph/api/gateway/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def to_value(x):
if x.startswith("http:") or x.startswith("https:"):
return Value(value=x, is_uri=True)
else:
return Value(value=x, is_uri=True)
return Value(value=x, is_uri=False)

def to_subgraph(x):
return [
Expand Down
2 changes: 1 addition & 1 deletion trustgraph-flow/trustgraph/direct/cassandra.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_sp(self, s, p, limit=10):

def get_po(self, p, o, limit=10):
return self.session.execute(
f"select s from {self.table} where p = %s and o = %s allow filtering limit {limit}",
f"select s from {self.table} where p = %s and o = %s limit {limit} allow filtering",
(p, o)
)

Expand Down

0 comments on commit 7a64385

Please sign in to comment.