Skip to content

Commit

Permalink
next try
Browse files Browse the repository at this point in the history
  • Loading branch information
devfle committed Feb 22, 2024
1 parent 7cd2031 commit 8a38b09
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions readme_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ def fetch_user_data(self) -> dict[str, int] | None:

while current_year >= 2015:
contribution_count = (response_data["data"]["user"]
[str(current_year)]["contributionsCollection"]["contributionCalendar"]["totalContributions"])
["_" + current_year]["contributionsCollection"]["contributionCalendar"]["totalContributions"])

total_contribution.append(contribution_count)
current_year -= 1
print("LOG COUNT")
print(contribution_count)


user_data = {}

user_data = (response_data["data"]["user"]
["contributionsCollection"]["contributionCalendar"])
user_data["totalContributions"] = sum(total_contribution)

user_data["totalFollowers"] = (response_data["data"]["user"]
["followers"]["totalCount"])
Expand Down

0 comments on commit 8a38b09

Please sign in to comment.