And one more typo to fix...

This commit is contained in:
Pierre-Yves Chibon 2017-05-02 13:38:40 +02:00
parent 70b6f99698
commit dff13eade9
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ def build_stats(commit):
if hasattr(patch, 'new_file_path'):
path = patch.new_file_path
else:
path = patch.delta.new_file_path
path = patch.delta.new_file.path
if hasattr(patch, 'additions'):
files[path]['additions'] += patch.additions

View file

@ -56,7 +56,7 @@ def build_stats(commit):
if hasattr(patch, 'new_file_path'):
path = patch.new_file_path
else:
path = patch.delta.new_file_path
path = patch.delta.new_file.path
if hasattr(patch, 'additions'):
files[path]['additions'] += patch.additions