Skip to content

Commit b484e84

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6ea9e74 commit b484e84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tracdb/stats.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def get_user_stats(user):
4545
@stat("Commits")
4646
def commit_count(user):
4747
count = Revision.objects.filter(
48-
Q(author__istartswith=f"{user.username} <") |
49-
Q(author__istartswith=f"{user.get_full_name()} <")
48+
Q(author__istartswith=f"{user.username} <")
49+
| Q(author__istartswith=f"{user.get_full_name()} <")
5050
).count()
5151
# This assumes that the username is their GitHub username.
5252
link = f"https://github.com/django/django/commits/main/?author={user.username}"

0 commit comments

Comments
 (0)