Skip to content

Commit

Permalink
list
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Mar 27, 2024
1 parent ed13b1c commit 32abf54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def get_identify_token(token: str):
@application.get("/v1/relations", response_class=ORJSONResponse)
async def get_relations(token: str):

response = {}
response = []

for nid, attribs in graph.nodes(True):
pattern = attribs.get("looks_like")
Expand All @@ -95,7 +95,7 @@ async def get_relations(token: str):
opteryx.query_to_arrow(cross, {"item": token}, limit=1).num_rows
> 0
):
response[target] = cross.replace(":item", "'" + token + "'")
response.append({"class": nid, "search": cross.replace(":item", "'" + token + "'")})

return response

Expand Down

0 comments on commit 32abf54

Please sign in to comment.