diff options
author | Tom Gall <tom.gall@linaro.org> | 2015-05-18 16:22:20 -0500 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2015-05-18 16:22:20 -0500 |
commit | d91472d137bba0d4d23e23386e3feddd0abfe60e (patch) | |
tree | bb339dbfd32f6942d4daefbb163a82806662e7c8 | |
parent | 2634640bf37671dc2774645fc3425cb168607e4c (diff) |
Sort report by first team (using the label field of the form
Team-XXX) and then secondly rank
-rwxr-xr-x | monthly-report.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monthly-report.py b/monthly-report.py index 4757b89..5fd794d 100755 --- a/monthly-report.py +++ b/monthly-report.py @@ -165,7 +165,7 @@ def constructquery(args): def report(jira, db, issues, outfile): """report - Report by user the amount of time logged (percentage) """ - db_sorted = sorted(db, key=lambda field: field['rank']) + db_sorted = sorted(db, key=lambda field: (field['team'], field['rank'])) old_assignee = "" old_parent = "" print >>outfile, '<table border=0>' |