File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default Ember.Route.extend({
12
12
} ;
13
13
return ajax ( '/summary' ) . then ( function ( data ) {
14
14
addCrates ( data . new_crates ) ;
15
- addCrates ( data . most_downloaded ) ;
15
+ addCrates ( data . most_directly_depended_upon ) ;
16
16
addCrates ( data . just_updated ) ;
17
17
return data ;
18
18
} ) ;
Original file line number Diff line number Diff line change 40
40
<h2 >New Crates</h2 >
41
41
{{ render " crate-list" new_crates }}
42
42
</div >
43
- <div id =' most-downloaded ' >
44
- <h2 >Most Downloaded </h2 >
45
- {{ render " crate-list" most_downloaded }}
43
+ <div id =' most-depended-upon ' >
44
+ <h2 >Most Directly Depended Upon </h2 >
45
+ {{ render " crate-list" most_directly_depended_upon }}
46
46
</div >
47
47
<div id =' just-updated' >
48
48
<h2 >Just Updated</h2 >
Original file line number Diff line number Diff line change @@ -550,22 +550,22 @@ pub fn summary(req: &mut Request) -> CargoResult<Response> {
550
550
WHERE updated_at::timestamp(0) !=
551
551
created_at::timestamp(0)
552
552
ORDER BY updated_at DESC LIMIT 10" ) ) ;
553
- let most_downloaded = try!( tx. prepare ( "SELECT * FROM crates \
554
- ORDER BY downloads DESC LIMIT 10") ) ;
553
+ let most_directly_depended_upon = try!( tx. prepare ( "SELECT * FROM crates \
554
+ ORDER BY dependencies-on DESC LIMIT 10") ) ;
555
555
556
556
#[ derive( RustcEncodable ) ]
557
557
struct R {
558
558
num_downloads : i64 ,
559
559
num_crates : i64 ,
560
560
new_crates : Vec < EncodableCrate > ,
561
- most_downloaded : Vec < EncodableCrate > ,
561
+ most_directly_depended_upon : Vec < EncodableCrate > ,
562
562
just_updated : Vec < EncodableCrate > ,
563
563
}
564
564
Ok ( req. json ( & R {
565
565
num_downloads : num_downloads,
566
566
num_crates : num_crates,
567
567
new_crates : try!( to_crates ( new_crates) ) ,
568
- most_downloaded : try!( to_crates ( most_downloaded ) ) ,
568
+ most_directly_depended_upon : try!( to_crates ( most_directly_depended_upon ) ) ,
569
569
just_updated : try!( to_crates ( just_updated) ) ,
570
570
} ) )
571
571
}
You can’t perform that action at this time.
0 commit comments