Skip to content

Commit dbe2424

Browse files
committed
get node_ids as number
1 parent a560c31 commit dbe2424

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

api/index.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,6 @@ def get_neighbors():
112112
logging.error(f"Missing project {repo}")
113113
return jsonify({"status": f"Missing project {repo}"}), 400
114114

115-
# Try converting node_ids to an integer
116-
try:
117-
node_ids = [int(node_id) for node_id in node_ids]
118-
except ValueError:
119-
logging.error(f"Invalid node IDs: {node_ids}. It must be an integer.")
120-
return jsonify({"status": "Invalid node IDs. It must be an integer."}), 400
121-
122115
# Initialize the graph with the provided repository
123116
g = Graph(repo)
124117

0 commit comments

Comments
 (0)