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 #653

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

Develop #653

wants to merge 4 commits into from

Conversation

Iryna802498
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.


Thank you for your hard work on this pull request! 😊 While your code meets most of the task requirements, there are a couple of critical issues that need to be addressed before we can approve it:

  1. Incorrect Tuple Usage in Validator Classes: In both ChildrenSlideLimitationValidator and AdultSlideLimitationValidator, the attributes age, weight, and height are mistakenly defined as tuples because of trailing commas. This needs to be corrected by removing the commas to ensure they are instances of IntegerRange.

  2. Incorrect Range Values: The ChildrenSlideLimitationValidator class has incorrect range values for weight and height. Please update the weight to be in the range of 20 to 50, and the height to be in the range of 80 to 120 as per the task requirements.

Once these issues are resolved, your code will be in great shape! Keep up the good work, and feel free to reach out if you have any questions or need further assistance. 🚀

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

app/main.py Outdated
Comment on lines 47 to 49
age = IntegerRange(4, 14),
weight = IntegerRange(80, 120),
height = IntegerRange(20, 50)

Choose a reason for hiding this comment

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

The class attributes age, weight, and height in ChildrenSlideLimitationValidator are incorrectly defined as tuples due to the trailing commas. Remove the commas to correctly define them as instances of IntegerRange.

app/main.py Outdated
Comment on lines 53 to 55
age = IntegerRange(14, 60),
weight = IntegerRange(120, 220),
height = IntegerRange(50, 120)

Choose a reason for hiding this comment

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

Similar to the ChildrenSlideLimitationValidator, the class attributes age, weight, and height in AdultSlideLimitationValidator are incorrectly defined as tuples. Remove the trailing commas to define them correctly as IntegerRange instances.

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.

3 participants