From c65f07f39d02d622cf558a607b76f71d3b9bbae3 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Thu, 21 Oct 2021 01:06:29 +0100 Subject: [PATCH] don't duplicate newly created/most downloaded for each version --- 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()) -- rgit 0.1.3