~cjohnston/qa-dashboard/performance-size-increase

« back to all changes in this revision

Viewing changes to power/api.py

  • Committer: Tarmac
  • Author(s): Joe Talbot
  • Date: 2013-10-09 10:30:50 UTC
  • mfrom: (629.1.1 power_fix_api)
  • Revision ID: tarmac-20131009103050-2v8dcnkp9m9hopki
[r=PS Jenkins bot, Andy Doan] Power - Show the last 180 entries not the first.  from Joe Talbott

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        name=name,
92
92
        machine=machine_id,
93
93
        image__arch=arch,
94
 
    ).order_by('image__build_number')[:MAX_RESULTS]
 
94
    ).order_by('-image__build_number')[:MAX_RESULTS]
95
95
 
96
96
    last_releases = PowerImage.objects.filter(
97
97
        powermetric__machine=machine_id,
111
111
    }
112
112
 
113
113
    image_data = []
114
 
    for r in res:
 
114
    for r in reversed(res):
115
115
        image_info = dict(
116
116
            bottom=r.minimum,
117
117
            min=r.minimum,