From 0c75c13193e8c46326f8fc1e4cb85cb6cf21ef82 Mon Sep 17 00:00:00 2001 From: ByteList Date: Fri, 1 Feb 2019 11:35:13 +0100 Subject: [PATCH] Debug --- models/action.go | 1 + routers/user/home.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/action.go b/models/action.go index 5dc0eb18e..661af4550 100644 --- a/models/action.go +++ b/models/action.go @@ -866,6 +866,7 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) { } cond = cond.And(builder.In("repo_id", repoIDs)) + fmt.Println("repoIDs: ", repoIDs) } cond = cond.And(builder.Eq{"user_id": opts.RequestedUser.ID}) diff --git a/routers/user/home.go b/routers/user/home.go index a87e81fd6..62e0f33c0 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -88,7 +88,7 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) { } ctx.Data["Feeds"] = actions - fmt.Println("Repos: ", ctx.Data["Repos"]) + fmt.Println("Feeds: ", ctx.Data["Feeds"]) } // Dashboard render the dashborad page