VasaChiranjeevi / ai-customer-feedback-analysis

The objective of this project is to build an AI-powered system to collect and analyze customer reviews for multiple companies, generating summaries and extracting common keywords using existing free AI models. The reviews and their respective analysis will be stored in a database, and summaries will be updated
0 stars 0 forks source link

fetching review #14

Closed rajats16 closed 1 month ago

rajats16 commented 1 month ago

Summary by Sourcery

Fix issues related to fetching and displaying company data by updating the HTML template and view logic to use 'company_id' consistently.

Bug Fixes:

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request makes minor changes to improve the consistency and correctness of company ID handling in the SentimentAnalysis project. The changes affect both the frontend template and the backend view.

No sequence diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Update company ID reference in HTML template
  • Change 'company.id' to 'company.company_id' in the value attribute of option tags
SentimentAnalysis/analysis/templates/index.html
Modify company lookup in backend view
  • Replace 'id' with 'pk' in the get_object_or_404 function call
SentimentAnalysis/analysis/views.py

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).