~brian-murray/ubuntu-sponsoring/bug-833706

« back to all changes in this revision

Viewing changes to sponsors-page.py

  • Committer: Iain Lane
  • Date: 2015-07-20 12:11:23 UTC
  • Revision ID: iain.lane@canonical.com-20150720121123-y7ot6db81js6eai2
sort all of the queues

Show diffs side-by-side

added added

removed removed

Lines of Context:
438
438
    subst = dict()
439
439
    subst["LAST_UPDATED"] = date
440
440
    subst["TABLE"] = ""
441
 
    for item in items:
 
441
    for item in sorted(items, key=operator.methodcaller("get_time_in_queue")):
442
442
        subst["TABLE"] += item.html(devs, packages)
443
443
    subst["TOTAL"] = len(items)
444
444
    subst["SYNCS"] = len([x for x in items if x.is_sync()])
506
506
        sponsoring_items[output_team] = sponsoring_items.get(output_team, set()) | \
507
507
                branches
508
508
    all_sponsoring_items = list(set.union(*sponsoring_items.values()))
509
 
    all_sponsoring_items.sort(key=operator.methodcaller("get_time_in_queue"))
510
509
    packages = launchpad.get_packagesets(lp, distribution)
511
510
    devs = [a.name for a in lp.people["ubuntu-dev"].participants]
512
511