🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2021-10-21 1:06:29.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-10-21 1:06:29.0 +01:00:00
commit
c65f07f39d02d622cf558a607b76f71d3b9bbae3 [patch]
tree
0cc476d3286f9db00a1913beafcaeb51c4214391
parent
ac74d20d41af005f793aae778083c38d63456ade
download
c65f07f39d02d622cf558a607b76f71d3b9bbae3.tar.gz

don't duplicate newly created/most downloaded for each version



Diff

 chartered-db/src/crates.rs | 2 --
 1 file changed, 2 deletions(-)

diff --git a/chartered-db/src/crates.rs b/chartered-db/src/crates.rs
index c1d6691..f1db911 100644
--- a/chartered-db/src/crates.rs
+++ a/chartered-db/src/crates.rs
@@ -184,7 +184,6 @@
                        .eq(UserPermission::VISIBLE.bits()),
                )
                .inner_join(organisations::table)
                .inner_join(crate_versions::table)
                .select((crates::all_columns, organisations::all_columns))
                .limit(10)
                .order_by(crate::schema::crates::dsl::created_at.desc())
@@ -209,7 +208,6 @@
                        .eq(UserPermission::VISIBLE.bits()),
                )
                .inner_join(organisations::table)
                .inner_join(crate_versions::table)
                .select((crates::all_columns, organisations::all_columns))
                .limit(10)
                .order_by(crate::schema::crates::dsl::downloads.desc())