Implement home page rendering and update requirements - #28
Open
RishobGuhaPatra wants to merge 1 commit into
Open
Implement home page rendering and update requirements#28RishobGuhaPatra wants to merge 1 commit into
RishobGuhaPatra wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Flask application to render the existing home-page template and implements a basic /search route, alongside simplifying/updating the pinned Python dependencies.
Changes:
- Render
templates/index.htmlfor the/route usingrender_template. - Implement
/searchto redirect users to a Google search based on theqquery parameter. - Reduce and update pinned dependencies in
requirements.txt.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| requirements.txt | Simplifies and updates pinned runtime dependencies. |
| app.py | Implements template rendering for / and adds Google redirect behavior for /search. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+7
to
+9
| # """ | ||
| # TODO: Render the home page provided under templates/index.html in the repository | ||
| # """ |
Comment on lines
+14
to
+18
| # """ | ||
| # TODO: | ||
| # 1. Capture the word that is being searched | ||
| # 2. Seach for the word on Google and display results | ||
| # """ |
Comment on lines
+20
to
+21
| args = request.args.get("q") | ||
| return redirect(f"https://www.google.com/search?q={args}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.