aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2015-05-18 16:22:20 -0500
committerTom Gall <tom.gall@linaro.org>2015-05-18 16:22:20 -0500
commitd91472d137bba0d4d23e23386e3feddd0abfe60e (patch)
treebb339dbfd32f6942d4daefbb163a82806662e7c8
parent2634640bf37671dc2774645fc3425cb168607e4c (diff)
Sort report by first team (using the label field of the form
Team-XXX) and then secondly rank
-rwxr-xr-xmonthly-report.py2
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>'