Add patch set and change requests into contribution summary

Change-Id: I72e1f03faecbbd5cf9a7db52d57533451484be3e
This commit is contained in:
Ilya Shakhat
2014-07-24 16:37:35 +04:00
parent be0b33979f
commit 4807342de8
2 changed files with 10 additions and 0 deletions

View File

@@ -173,6 +173,8 @@ def get_contribution_summary(records):
email_count = 0
filed_bug_count = 0
resolved_bug_count = 0
patch_set_count = 0
change_request_count = 0
for record in records:
record_type = record.record_type
@@ -194,6 +196,10 @@ def get_contribution_summary(records):
filed_bug_count += 1
elif record_type == 'bugr':
resolved_bug_count += 1
elif record_type == 'patch':
patch_set_count += 1
elif record_type == 'review':
change_request_count += 1
result = {
'drafted_blueprint_count': drafted_blueprint_count,
@@ -204,6 +210,8 @@ def get_contribution_summary(records):
'marks': marks,
'filed_bug_count': filed_bug_count,
'resolved_bug_count': resolved_bug_count,
'patch_set_count': patch_set_count,
'change_request_count': change_request_count,
}
return result