diff --git a/go.mod b/go.mod index 181b2a78..7be5fa1c 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/shylinux/icebergs go 1.13 require ( - github.com/gomarkdown/markdown v0.0.0-20200127000047-1813ea067497 github.com/gorilla/websocket v1.4.1 github.com/shylinux/toolkits v0.1.4 github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086 diff --git a/misc/git/git.go b/misc/git/git.go index 974d0718..6b631fab 100644 --- a/misc/git/git.go +++ b/misc/git/git.go @@ -123,7 +123,6 @@ var Index = &ice.Context{Name: "git", Help: "代码库", return } wg.Add(1) - m.Push("name", kit.Value(value, "meta.name")) m.Gos(m, func(m *ice.Message) { msg := m.Cmd("_sum", kit.Value(value, "meta.path"), "total", "10000").Table(func(index int, value map[string]string, head []string) { if kit.Int(value["days"]) > days { @@ -134,6 +133,7 @@ var Index = &ice.Context{Name: "git", Help: "代码库", dels += kit.Int(value["dels"]) rest += kit.Int(value["rest"]) }) + m.Push("name", kit.Value(value, "meta.name")) m.Copy(msg) wg.Done() }) @@ -145,7 +145,7 @@ var Index = &ice.Context{Name: "git", Help: "代码库", m.Push("adds", adds) m.Push("dels", dels) m.Push("rest", rest) - m.Sort("adds", "int_r") + m.Sort("rest", "int_r") }}, "status": {Name: "status name auto", Help: "文件状态", Meta: kit.Dict( "detail", []interface{}{"add", "reset", "remove", kit.Dict("name", "commit", "args", kit.List(