Skip to content

Commit

Permalink
chore: Change manage.py to Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 7, 2024
1 parent 06bc002 commit 1e3f959
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ def github_activity(user, days, start, end):
end += "T23:59:59Z"

if not start and days:
start = (datetime.datetime.now(tz=datetime.UTC) - datetime.timedelta(days=days)).strftime("%Y-%m-%dT%H:%M:%SZ")
start = (datetime.datetime.now(tz=datetime.timezone.utc) - datetime.timedelta(days=days)).strftime(
"%Y-%m-%dT%H:%M:%SZ"
)
if not end:
end = datetime.datetime.now(tz=datetime.UTC).strftime("%Y-%m-%dT%H:%M:%SZ")
end = datetime.datetime.now(tz=datetime.timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")

query = format_string.format(
queries="\n".join(f' user{i}: user(login: "{login}") {{\n ...f\n }}' for i, login in enumerate(user)),
Expand Down

0 comments on commit 1e3f959

Please sign in to comment.