mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +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 = []
|
commits = []
|
||||||
try:
|
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:
|
except SearpcError:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
# Commits are already sorted by date, so the user list is also sorted.
|
# 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
|
# Remove duplicate elements in a list
|
||||||
ret = []
|
ret = []
|
||||||
|
Reference in New Issue
Block a user