Browse Source

Show number of authors for each month/year.

Heikki Hokkanen 15 years ago
parent
commit
1567223e98
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      gitstats

+ 4
- 4
gitstats View File

787
 		# Authors :: Author of Month
787
 		# Authors :: Author of Month
788
 		f.write(html_header(2, 'Author of Month'))
788
 		f.write(html_header(2, 'Author of Month'))
789
 		f.write('<table class="sortable" id="aom">')
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
 		for yymm in reversed(sorted(data.author_of_month.keys())):
791
 		for yymm in reversed(sorted(data.author_of_month.keys())):
792
 			authordict = data.author_of_month[yymm]
792
 			authordict = data.author_of_month[yymm]
793
 			authors = getkeyssortedbyvalues(authordict)
793
 			authors = getkeyssortedbyvalues(authordict)
794
 			authors.reverse()
794
 			authors.reverse()
795
 			commits = data.author_of_month[yymm][authors[0]]
795
 			commits = data.author_of_month[yymm][authors[0]]
796
 			next = ', '.join(authors[1:conf['authors_top']+1])
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
 		f.write('</table>')
799
 		f.write('</table>')
800
 
800
 
801
 		f.write(html_header(2, 'Author of Year'))
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
 		for yy in reversed(sorted(data.author_of_year.keys())):
803
 		for yy in reversed(sorted(data.author_of_year.keys())):
804
 			authordict = data.author_of_year[yy]
804
 			authordict = data.author_of_year[yy]
805
 			authors = getkeyssortedbyvalues(authordict)
805
 			authors = getkeyssortedbyvalues(authordict)
806
 			authors.reverse()
806
 			authors.reverse()
807
 			commits = data.author_of_year[yy][authors[0]]
807
 			commits = data.author_of_year[yy][authors[0]]
808
 			next = ', '.join(authors[1:conf['authors_top']+1])
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
 		f.write('</table>')
810
 		f.write('</table>')
811
 
811
 
812
 		# Domains
812
 		# Domains