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

v1 #1385

Closed
wants to merge 7 commits into from
Closed

v1 #1385

wants to merge 7 commits into from

Conversation

PiotrHic
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 efforts on this task! 😊 However, there are a few critical issues that need to be addressed before we can approve your Pull Request. The getSalaryInfo method currently does not meet the core requirements of the task. Specifically, it fails to calculate salaries correctly, handle date filtering, and iterate over the data properly. Please revise your implementation to ensure it calculates the total salary for each employee within the specified date range and formats the output as required. Keep up the hard work, and don't hesitate to reach out if you need further guidance!

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

Comment on lines 8 to 9
for (int i = 0; i < names.length; i++) {
stringBuilder.append(names[0]).append(" - ").append(data[0]).append("\n");

Choose a reason for hiding this comment

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

The loop is intended to iterate over each name in the names array, but it incorrectly uses names[0] and data[0] in the append method. This results in the same name and data being appended repeatedly. You should use names[i] and the corresponding data for each name to ensure the correct information is appended for each person.

@PiotrHic PiotrHic closed this by deleting the head repository Dec 22, 2024
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.

2 participants