aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-03-29 22:16:31 +0800
committerGitHub <noreply@github.com>2022-03-29 22:16:31 +0800
commitbd97736b9c7a16023bc9abf17be6157284f655b1 (patch)
treeeea5870d406bd00fa2e675901f24d9f1fbf1796f /routers/web/user
parentea6efba9b3fd298c842a935266060e405e2ae4a3 (diff)
downloadgitea-bd97736b9c7a16023bc9abf17be6157284f655b1.tar.gz
gitea-bd97736b9c7a16023bc9abf17be6157284f655b1.zip
Move project files into models/project sub package (#17704)
* Move project files into models/project sub package * Fix test * Fix test * Fix test * Fix build * Fix test * Fix template bug * Fix bug * Fix lint * Fix test * Fix import * Improve codes Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/profile.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go
index 99198e8866..f628840375 100644
--- a/routers/web/user/profile.go
+++ b/routers/web/user/profile.go
@@ -13,6 +13,7 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/models/organization"
+ project_model "code.gitea.io/gitea/models/project"
repo_model "code.gitea.io/gitea/models/repo"
user_model "code.gitea.io/gitea/models/user"
"code.gitea.io/gitea/modules/context"
@@ -216,10 +217,10 @@ func Profile(ctx *context.Context) {
total = int(count)
case "projects":
- ctx.Data["OpenProjects"], _, err = models.GetProjects(models.ProjectSearchOptions{
+ ctx.Data["OpenProjects"], _, err = project_model.GetProjects(project_model.SearchOptions{
Page: -1,
IsClosed: util.OptionalBoolFalse,
- Type: models.ProjectTypeIndividual,
+ Type: project_model.TypeIndividual,
})
if err != nil {
ctx.ServerError("GetProjects", err)