-
Notifications
You must be signed in to change notification settings - Fork 26
Remove division by zero error #3
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
Conversation
|
Please update the commit message, there's a minor typo in the file name |
|
Corrected the Typo :) |
|
Please update the requested reviews too, otherwise looks good to merge. |
AnantStrange
left a comment
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.
Review done and ready to be merged.
|
You are supposed to make the changes requested in the review 😅. As for this one, its "Can you move the checking part under the block at line 282? Otherwise, the checking would be done even if data couldn't be fetched." |
|
Alright, Made the changes - Moved the check inside the |
| pull_requests_merge_percentage = 0 # You can choose another appropriate value | ||
|
|
||
|
|
||
| if user_stats: |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
Alright, LGTM. Thank you for your contribution! :) |
|
Thank you too, my first pr 😁. |
In fetch_github_stats.py line 297, if user had 0 pull request, a 0 division error would be thrown.
Placed a Check to set pull_merge_request = 0 if merge_request = 0.