We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook, Instagram and Microsoft search (Bing) work. They are set only if you accept. See our Privacy Policy for details.
Home / Review the AI's PR / Python
The ask: “Add GET /users/search?q=<name>&page=<n> that returns 20 users per page whose name contains q.”
Context: Flask app on SQLite via the standard sqlite3 module. The endpoint is public.
Click any added line you would block in review and say why. This change has 2 planted defects.
| 41 | @bp.get("/users/<int:user_id>") | |
| 42 | def get_user(user_id): | |
| 43 | return jsonify(fetch_user(user_id)) | |
| 44 | ||
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + |