Skip to content
Snippets Groups Projects
Commit a4c319e6 authored by Sebastien Helleu's avatar Sebastien Helleu
Browse files

Fix parsing of authors

The script was throwing an error when building chart "authors" with
Linux git repository: some lines with author have a count, but no name.
parent 87603e02
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -48,7 +48,7 @@ import subprocess
import sys
import traceback
 
VERSION = '0.9'
VERSION = '1.0'
 
 
class GitChart:
Loading
Loading
@@ -154,7 +154,7 @@ class GitChart:
count_others = 0
sum_others = 0
for author in stdout:
(number, name) = author.strip().split('\t', 1)
(number, name) = author.strip(' ').split('\t', 1)
count += 1
if self.max_diff <= 0 or count <= self.max_diff:
pie_chart.add(name + ' ({0})'.format(number), int(number))
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment