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

Fix total commits not counting by year #788

Closed
wants to merge 1 commit into from
Closed

Fix total commits not counting by year #788

wants to merge 1 commit into from

Conversation

aboqasem
Copy link

@aboqasem aboqasem commented Jan 6, 2021

This fixes #778, fixes #787. But I don't know if the modified code will break something.
I think it should not because if(!include_all_commits) means NOT all commits, but yearly commits.
Not sure, so feel free to correct me if I'm wrong 😅.

@vercel
Copy link

vercel bot commented Jan 6, 2021

@aboqasem is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@aboqasem aboqasem mentioned this pull request Jan 7, 2021
// since totalCommitsFetcher already sends totalCommits no need to +=
if (include_all_commits) {
if (!include_all_commits) {
Copy link
Owner

Choose a reason for hiding this comment

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

If include_all_commits is true.. we should fetch all of the commits since user joined github.

Copy link
Author

@aboqasem aboqasem Jan 8, 2021

Choose a reason for hiding this comment

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

But that is already done above, isn't it? So the code is fetching the same info again.

After I modified the code, /api/?username=aboqasem&include_all_commits=true renders the expected output:

Screenshot 2021-01-08 at 8 42 08 AM

As well as /api/?username=aboqasem:

Screenshot 2021-01-08 at 8 44 29 AM

Could you explain further what am I missing here?
Thank you!

@stale
Copy link

stale bot commented Feb 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue is marked as stale. label Feb 7, 2021
@stale stale bot closed this Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Issue is marked as stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Year or number of total commits looks invalid Fetching Bug
2 participants