Commit 87eb8e7d authored by Michal Čihař's avatar Michal Čihař

Skip reporting changes with no words

Fixes rb#313
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 90d83850
...@@ -136,6 +136,8 @@ def generate_counts(component, start_date, end_date): ...@@ -136,6 +136,8 @@ def generate_counts(component, start_date, end_date):
'author__email', 'author__first_name', 'unit__num_words', 'author__email', 'author__first_name', 'unit__num_words',
) )
for email, name, words in authors: for email, name, words in authors:
if words is None:
continue
if email not in result: if email not in result:
result[email] = { result[email] = {
'name': name, 'name': name,
......
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