Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #31

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Develop #31

wants to merge 4 commits into from

Conversation

VladimirDolhyi
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the core functionality for managing movies in your application! 🎉 Your code meets the task requirements and constraints, and the endpoints are well-structured. While there are a few areas for improvement, such as handling optional fields more explicitly and ensuring method validity, these are minor and do not critically impact the functionality. Keep up the good work, and consider the feedback for future enhancements! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

db.refresh(language)
languages.append(language)

new_movie_data = movie.model_dump(exclude={"country", "genres", "actors", "languages"})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that model_dump is a valid method for your MovieCreate schema. If this method does not exist, it will raise an AttributeError.

Comment on lines +35 to +36
class Config:
from_attributes = True

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The from_attributes configuration is not a standard Pydantic configuration option. If you intended to use a feature like ORM mode, consider using orm_mode = True instead.

@VladimirDolhyi
Copy link
Author

Screenshot 2025-01-25 051924

Copy link

@vsmutok vsmutok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants