From e0483329fab7454fdbf768d13251847425970f8c Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 4 Jul 2020 08:40:43 +0200 Subject: [PATCH] Revert to old column naming in UI --- server/service/src/main.rs | 8 ++++---- server/ui/src/components/search.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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")}