We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ea9e74 commit b484e84Copy full SHA for b484e84
tracdb/stats.py
@@ -45,8 +45,8 @@ def get_user_stats(user):
45
@stat("Commits")
46
def commit_count(user):
47
count = Revision.objects.filter(
48
- Q(author__istartswith=f"{user.username} <") |
49
- Q(author__istartswith=f"{user.get_full_name()} <")
+ Q(author__istartswith=f"{user.username} <")
+ | Q(author__istartswith=f"{user.get_full_name()} <")
50
).count()
51
# This assumes that the username is their GitHub username.
52
link = f"https://github.com/django/django/commits/main/?author={user.username}"
0 commit comments