Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
devfle committed Feb 22, 2024
1 parent 71f950e commit 6cd8b42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme_level.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Module that contains all the logic about the levelsystem."""
from os import getenv
from datetime import datetime
from logging import exception, info
from requests import post
from datetime import datetime
from graphql_query import QUERY
from readme_data import ReadmeLevelData

Expand All @@ -24,7 +24,7 @@ def fetch_user_data(self) -> dict[str, int] | None:

if not getenv("INPUT_GITHUB_TOKEN"):
exception("an error with the github token occurred")

auth_header = {"Authorization": "Bearer " +
getenv("INPUT_GITHUB_TOKEN")}
response = post("https://api.github.com/graphql",
Expand All @@ -41,10 +41,10 @@ def fetch_user_data(self) -> dict[str, int] | None:
while current_year >= 2015:
contribution_count = (response_data["data"]["user"]
["_" + str(current_year)]["contributionCalendar"]["totalContributions"])

total_contribution.append(contribution_count)
current_year -= 1


user_data = {}

Expand Down

0 comments on commit 6cd8b42

Please sign in to comment.