Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python-envs.defaultEnvManager": "ms-python.python:system"
}
11 changes: 10 additions & 1 deletion routes/main_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,16 @@ def recommend():
)
}), 200

return jsonify({"projects": results}), 200
# Ensure all projects have IDs in the response
projects_data = []
for project in results:
project_dict = dict(project) # Convert to dict if needed
# Make sure ID is included
if 'id' not in project_dict:
project_dict['id'] = project.get('id', 0)
projects_data.append(project_dict)

return jsonify({"projects": projects_data}), 200


@main.route("/project/<int:project_id>")
Expand Down
Loading
Loading