|
|
|
@@ -309,9 +309,11 @@ func ExploreDatasets(ctx *context.Context) { |
|
|
|
orderBy = models.SearchOrderByStarsReverse |
|
|
|
case "feweststars": |
|
|
|
orderBy = models.SearchOrderByStars |
|
|
|
case "default": |
|
|
|
orderBy = models.SearchOrderByDefault |
|
|
|
default: |
|
|
|
ctx.Data["SortType"] = "recentupdate" |
|
|
|
orderBy = models.SearchOrderByRecentUpdated |
|
|
|
ctx.Data["SortType"] = "default" |
|
|
|
orderBy = models.SearchOrderByDefault |
|
|
|
} |
|
|
|
|
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
|