diff --git a/server/service/src/main.rs b/server/service/src/main.rs index 038f811..4debadc 100644 --- a/server/service/src/main.rs +++ b/server/service/src/main.rs @@ -28,8 +28,8 @@ const DEFAULT_SIZE: usize = 25; enum SortKey { Name, Size, - Seeders, - Leechers, + Seeds, + Leeches, Scraped, } @@ -163,8 +163,8 @@ fn build_order_clause(type_: &str, sort_key: SortKey, sort_dir: SortDirection) - } }, SortKey::Size => "size_bytes", - SortKey::Seeders => "seeders", - SortKey::Leechers => "leechers", + SortKey::Seeds => "seeders", + SortKey::Leeches => "leechers", SortKey::Scraped => "scraped_date", }; diff --git a/server/ui/src/components/search.tsx b/server/ui/src/components/search.tsx index 7102249..c6357ee 100644 --- a/server/ui/src/components/search.tsx +++ b/server/ui/src/components/search.tsx @@ -161,8 +161,8 @@ export class Search extends Component { {this.sortLink("Name")} {this.sortLink("Size")} - {this.sortLink("Seeders")} - {this.sortLink("Leechers")} + {this.sortLink("Seeds")} + {this.sortLink("Leeches")} {this.sortLink("Scraped")}