Quellcode durchsuchen

Show number of authors for each month/year.

Heikki Hokkanen vor 15 Jahren
Ursprung
Commit
1567223e98
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4
    4
      gitstats

+ 4
- 4
gitstats Datei anzeigen

@@ -787,26 +787,26 @@ class HTMLReportCreator(ReportCreator):
787 787
 		# Authors :: Author of Month
788 788
 		f.write(html_header(2, 'Author of Month'))
789 789
 		f.write('<table class="sortable" id="aom">')
790
-		f.write('<tr><th>Month</th><th>Author</th><th>Commits (%%)</th><th class="unsortable">Next top %d</th></tr>' % conf['authors_top'])
790
+		f.write('<tr><th>Month</th><th>Author</th><th>Commits (%%)</th><th class="unsortable">Next top %d</th><th>Number of authors</th></tr>' % conf['authors_top'])
791 791
 		for yymm in reversed(sorted(data.author_of_month.keys())):
792 792
 			authordict = data.author_of_month[yymm]
793 793
 			authors = getkeyssortedbyvalues(authordict)
794 794
 			authors.reverse()
795 795
 			commits = data.author_of_month[yymm][authors[0]]
796 796
 			next = ', '.join(authors[1:conf['authors_top']+1])
797
-			f.write('<tr><td>%s</td><td>%s</td><td>%d (%.2f%% of %d)</td><td>%s</td></tr>' % (yymm, authors[0], commits, (100.0 * commits) / data.commits_by_month[yymm], data.commits_by_month[yymm], next))
797
+			f.write('<tr><td>%s</td><td>%s</td><td>%d (%.2f%% of %d)</td><td>%s</td><td>%d</td></tr>' % (yymm, authors[0], commits, (100.0 * commits) / data.commits_by_month[yymm], data.commits_by_month[yymm], next, len(authors)))
798 798
 
799 799
 		f.write('</table>')
800 800
 
801 801
 		f.write(html_header(2, 'Author of Year'))
802
-		f.write('<table class="sortable" id="aoy"><tr><th>Year</th><th>Author</th><th>Commits (%%)</th><th class="unsortable">Next top %d</th></tr>' % conf['authors_top'])
802
+		f.write('<table class="sortable" id="aoy"><tr><th>Year</th><th>Author</th><th>Commits (%%)</th><th class="unsortable">Next top %d</th><th>Number of authors</th></tr>' % conf['authors_top'])
803 803
 		for yy in reversed(sorted(data.author_of_year.keys())):
804 804
 			authordict = data.author_of_year[yy]
805 805
 			authors = getkeyssortedbyvalues(authordict)
806 806
 			authors.reverse()
807 807
 			commits = data.author_of_year[yy][authors[0]]
808 808
 			next = ', '.join(authors[1:conf['authors_top']+1])
809
-			f.write('<tr><td>%s</td><td>%s</td><td>%d (%.2f%% of %d)</td><td>%s</td></tr>' % (yy, authors[0], commits, (100.0 * commits) / data.commits_by_year[yy], data.commits_by_year[yy], next))
809
+			f.write('<tr><td>%s</td><td>%s</td><td>%d (%.2f%% of %d)</td><td>%s</td><td>%d</td></tr>' % (yy, authors[0], commits, (100.0 * commits) / data.commits_by_year[yy], data.commits_by_year[yy], next, len(authors)))
810 810
 		f.write('</table>')
811 811
 
812 812
 		# Domains