Changeset 3f851a2 in osmose-frontend


Ignore:
Timestamp:
Jan 19, 2013 3:12:55 PM (7 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
dc2d258
Parents:
ceac742
Message:

Sort update matrix by avg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • views/control/updates_matrix.tpl

    rceac742 r3f851a2  
    1414<tr> 
    1515    <th colspan="4" rowspan="4"/> 
     16%keys = sorted(keys, key=lambda k: -stats_country[k][1]) 
    1617%for k in keys: 
    1718    <th class="country"><div class="rotate-90"><a href="../errors/?country={{k}}">{{k}}</a></div></th> 
     
    2627</tr> 
    2728%end 
    28 %for r in sorted(matrix.keys()): 
     29%for r in sorted(matrix.keys(), key=lambda k: -stats_analyser[k][1]): 
    2930<tr> 
    3031    <th style="text-align: left">{{r}}</th> 
Note: See TracChangeset for help on using the changeset viewer.