diff --git a/pkg/book/category_search.go b/pkg/book/category_search.go index 7ea8d7f..7ab7fbd 100644 --- a/pkg/book/category_search.go +++ b/pkg/book/category_search.go @@ -19,8 +19,6 @@ type Sort string const ( SortTotalRecommend Sort = "2" SortCharCount Sort = "3" - SortLastUpdated Sort = "5" - SortRecentFinished Sort = "6" SortWeekRecommend Sort = "9" SortMonthRecommend Sort = "10" SortTotalBookmark Sort = "11" diff --git a/pkg/book/category_search_test.go b/pkg/book/category_search_test.go index ba515a4..f120784 100644 --- a/pkg/book/category_search_test.go +++ b/pkg/book/category_search_test.go @@ -24,9 +24,7 @@ func TestCategorySearch_simple(t *testing.T) { {CategorySearchOptionSubCategory(SC未来世界)}, {CategorySearchOptionPage(2)}, {CategorySearchOptionPage(2), CategorySearchOptionSort(SortMonthRecommend)}, - {CategorySearchOptionSort(SortLastUpdated)}, {CategorySearchOptionSort(SortMonthRecommend)}, - {CategorySearchOptionSort(SortRecentFinished)}, {CategorySearchOptionSort(SortTotalBookmark)}, {CategorySearchOptionSort(SortTotalRecommend)}, {CategorySearchOptionSort(SortWeekRecommend)}, @@ -74,9 +72,6 @@ func TestCategorySearch_simple(t *testing.T) { if opt.sort == "" { assert.NotEmpty(t, i.LastUpdated) } - if opt.sort == SortRecentFinished { - assert.NotEmpty(t, i.Finished) - } hasWeekRecommendCount = hasWeekRecommendCount || i.WeekRecommendCount > 0 hasMonthRecommendCount = hasMonthRecommendCount || i.MonthRecommendCount > 0 hasTotalRecommendCount = hasTotalRecommendCount || i.TotalRecommendCount > 0