-
Notifications
You must be signed in to change notification settings - Fork 58
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
base: main
Are you sure you want to change the base?
Develop #31
Conversation
There was a problem hiding this 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! ✨
src/routes/movies.py
Outdated
db.refresh(language) | ||
languages.append(language) | ||
|
||
new_movie_data = movie.model_dump(exclude={"country", "genres", "actors", "languages"}) |
There was a problem hiding this comment.
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.
class Config: | ||
from_attributes = True |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
No description provided.