From 6fbb984ebf4f0d6804f0f83e6edb12ef0bb9a570 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 5 Apr 2017 09:05:40 -0400 Subject: Refactoring: rename pkg/base -> pkg/tool --- models/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/issue.go') diff --git a/models/issue.go b/models/issue.go index 789165c4..cf49f173 100644 --- a/models/issue.go +++ b/models/issue.go @@ -16,7 +16,7 @@ import ( api "github.com/gogits/go-gogs-client" "github.com/gogits/gogs/models/errors" - "github.com/gogits/gogs/pkg/base" + "github.com/gogits/gogs/pkg/tool" "github.com/gogits/gogs/pkg/setting" ) @@ -1213,7 +1213,7 @@ func GetIssueStats(opts *IssueStatsOptions) *IssueStats { sess := x.Where("issue.repo_id = ?", opts.RepoID).And("is_pull = ?", opts.IsPull) if len(opts.Labels) > 0 && opts.Labels != "0" { - labelIDs := base.StringsToInt64s(strings.Split(opts.Labels, ",")) + labelIDs := tool.StringsToInt64s(strings.Split(opts.Labels, ",")) if len(labelIDs) > 0 { sess.Join("INNER", "issue_label", "issue.id = issue_id").In("label_id", labelIDs) } -- cgit v1.2.3