소스 검색

Don't revert getAuthors' sorting by commits by sorting again.

getAuthors sorts by commits, sorting it again negates that and instead
sorts the list alphabetically again which kind of defeats the purpose.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Wulf C. Krueger 16 년 전
부모
커밋
d2b5b32071
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      gitstats

+ 1
- 1
gitstats 파일 보기

@@ -771,7 +771,7 @@ class HTMLReportCreator(ReportCreator):
771 771
 
772 772
 		f.write('<table class="authors sortable" id="authors">')
773 773
 		f.write('<tr><th>Author</th><th>Commits (%)</th><th>+ lines</th><th>- lines</th><th>First commit</th><th>Last commit</th><th class="unsortable">Age</th><th>Active days</th><th># by commits</th></tr>')
774
-		for author in sorted(data.getAuthors(conf['max_authors'])):
774
+		for author in data.getAuthors(conf['max_authors']):
775 775
 			info = data.getAuthorInfo(author)
776 776
 			f.write('<tr><td>%s</td><td>%d (%.2f%%)</td><td>%d</td><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td>%d</td><td>%d</td></tr>' % (author, info['commits'], info['commits_frac'], info['lines_added'], info['lines_removed'], info['date_first'], info['date_last'], info['timedelta'], info['active_days'], info['place_by_commits']))
777 777
 		f.write('</table>')