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 8d09e9c commit e65ae08
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions graphql_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
while current_year >= 2015:

temp_query = f"""
{str(current_year)}: contributionsCollection(from: "{str(current_year)}-01-01T00:00:00") {{
{"_" + str(current_year)}: contributionsCollection(from: "{str(current_year)}-01-01T00:00:00") {{
contributionCalendar {{
totalContributions
}}
Expand All @@ -23,16 +23,7 @@
QUERY = f"""
{{
user(login: "{getenv("INPUT_GITHUB_USERNAME")}") {{
{"a" + str(current_year) + "a"}: contributionsCollection(from: "{current_year}-01-01T00:00:00") {{
contributionCalendar {{
totalContributions
}}
}}
{"a" + str(current_year - 1) + "a"}: contributionsCollection(from: "{current_year - 1}-01-01T00:00:00") {{
contributionCalendar {{
totalContributions
}}
}}
{linesep.join(temp_query)}
followers {{
totalCount
}}
Expand Down

0 comments on commit e65ae08

Please sign in to comment.