Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 26, 2024
1 parent 6ea9e74 commit b484e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracdb/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def get_user_stats(user):
@stat("Commits")
def commit_count(user):
count = Revision.objects.filter(
Q(author__istartswith=f"{user.username} <") |
Q(author__istartswith=f"{user.get_full_name()} <")
Q(author__istartswith=f"{user.username} <")
| Q(author__istartswith=f"{user.get_full_name()} <")
).count()
# This assumes that the username is their GitHub username.
link = f"https://github.com/django/django/commits/main/?author={user.username}"
Expand Down

0 comments on commit b484e84

Please sign in to comment.