Skip to content

Commit

Permalink
lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kataikko committed Jul 3, 2023
1 parent f3f9b54 commit b55ccd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ def get_number_of_proteins(driver: neo4j.Driver) -> int:
return int(num_proteins)


def _convert_to_connection_info_score(result: neo4j.Result, _int:bool) -> (list[str], list[str], list[str], list[int]):
def _convert_to_connection_info_score(result: neo4j.Result, _int: bool) -> (list[str], list[str], list[str], list[int]):
nodes, source, target, score = list(), list(), list(), list()

for row in result:
nodes.append(row["source"])
nodes.append(row["target"])
source.append(row["source"].get("external_id"))
target.append(row["target"].get("external_id"))
if _int:
if _int:
score.append(int(row["score"]))
else:
score.append(float(row["score"]))
Expand Down

0 comments on commit b55ccd4

Please sign in to comment.