浏览代码

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>')