Commit b3011e05 authored by Gustavo Padovan's avatar Gustavo Padovan

stats: use pythonic way to sum the commits

parent e07658ed
......@@ -52,10 +52,7 @@ def is_maintainer(commit, email, name):
return False
def total_commits(d):
sum = 0
for v in d.values():
sum += v[0]
return sum
return sum((v[0] for v in d.values()))
def print_commits(dict):
for email, data in sorted(dict.items(), key=lambda item: item[1], reverse=True):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment