|
|
@@ -1,6 +1,8 @@ |
|
|
|
package dataset |
|
|
|
|
|
|
|
import ( |
|
|
|
"strings" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
"code.gitea.io/gitea/modules/auth" |
|
|
|
"code.gitea.io/gitea/modules/base" |
|
|
@@ -64,8 +66,9 @@ func MyList(ctx *context.Context) { |
|
|
|
ctx.Data["SortType"] = "recentupdate" |
|
|
|
orderBy = models.SearchOrderByRecentUpdated |
|
|
|
} |
|
|
|
keyword := strings.Trim(ctx.Query("q"), " ") |
|
|
|
datasetSearchOptions := &models.SearchDatasetOptions{ |
|
|
|
Keyword: ctx.QueryTrim("keyword"), |
|
|
|
Keyword: keyword, |
|
|
|
IsPublic: true, |
|
|
|
SearchOrderBy: orderBy, |
|
|
|
ListOptions: models.ListOptions{ |
|
|
|