mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Modify file contributors
This commit is contained in:
4
utils.py
4
utils.py
@@ -354,12 +354,12 @@ def get_file_contributors_from_revisions(repo_id, file_path):
|
||||
"""
|
||||
commits = []
|
||||
try:
|
||||
commits = seafserv_threaded_rpc.list_file_revisions(repo_id, file_path, 100)
|
||||
commits = seafserv_threaded_rpc.list_file_revisions(repo_id, file_path, -1)
|
||||
except SearpcError:
|
||||
return []
|
||||
|
||||
# Commits are already sorted by date, so the user list is also sorted.
|
||||
users = [ commit.creator_name for commit in commits ]
|
||||
users = [ commit.creator_name for commit in commits if commit.creator_name ]
|
||||
|
||||
# Remove duplicate elements in a list
|
||||
ret = []
|
||||
|
Reference in New Issue
Block a user