Skip to content

Conversation

Rajneesh180
Copy link

This PR addresses incorrect calculations in the getDataPoint and getRatio functions, improves output formatting in client3.py, adds proper .gitignore rules, and updates tests for more reliable verification.

Fix: Corrected logic in getDataPoint to ensure accurate tuple returns for stock data.

Fix: Resolved division handling in getRatio to avoid incorrect or undefined results.

Improvement: Updated client3.py with better print statements and fixed missing newline issues for cleaner console output.

Maintenance: Added .gitignore to exclude untracked/temporary files from version control.

Testing: Adjusted unit tests to align with updated function logic, ensuring better accuracy and stability.

Ran all updated tests — all pass successfully.

Manually verified output from client3.py matches expected format and values.

These fixes ensure more accurate calculations, cleaner outputs, and a more maintainable codebase. Recommended for merge to maintain correctness across modules.

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.

1 participant