forked from x/icebergs
fix git.total
This commit is contained in:
parent
dd3b68d32c
commit
a469dbdac5
1
go.mod
1
go.mod
@ -3,7 +3,6 @@ module github.com/shylinux/icebergs
|
|||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gomarkdown/markdown v0.0.0-20200127000047-1813ea067497
|
|
||||||
github.com/gorilla/websocket v1.4.1
|
github.com/gorilla/websocket v1.4.1
|
||||||
github.com/shylinux/toolkits v0.1.4
|
github.com/shylinux/toolkits v0.1.4
|
||||||
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086
|
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086
|
||||||
|
@ -123,7 +123,6 @@ var Index = &ice.Context{Name: "git", Help: "代码库",
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
m.Push("name", kit.Value(value, "meta.name"))
|
|
||||||
m.Gos(m, func(m *ice.Message) {
|
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) {
|
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 {
|
if kit.Int(value["days"]) > days {
|
||||||
@ -134,6 +133,7 @@ var Index = &ice.Context{Name: "git", Help: "代码库",
|
|||||||
dels += kit.Int(value["dels"])
|
dels += kit.Int(value["dels"])
|
||||||
rest += kit.Int(value["rest"])
|
rest += kit.Int(value["rest"])
|
||||||
})
|
})
|
||||||
|
m.Push("name", kit.Value(value, "meta.name"))
|
||||||
m.Copy(msg)
|
m.Copy(msg)
|
||||||
wg.Done()
|
wg.Done()
|
||||||
})
|
})
|
||||||
@ -145,7 +145,7 @@ var Index = &ice.Context{Name: "git", Help: "代码库",
|
|||||||
m.Push("adds", adds)
|
m.Push("adds", adds)
|
||||||
m.Push("dels", dels)
|
m.Push("dels", dels)
|
||||||
m.Push("rest", rest)
|
m.Push("rest", rest)
|
||||||
m.Sort("adds", "int_r")
|
m.Sort("rest", "int_r")
|
||||||
}},
|
}},
|
||||||
"status": {Name: "status name auto", Help: "文件状态", Meta: kit.Dict(
|
"status": {Name: "status name auto", Help: "文件状态", Meta: kit.Dict(
|
||||||
"detail", []interface{}{"add", "reset", "remove", kit.Dict("name", "commit", "args", kit.List(
|
"detail", []interface{}{"add", "reset", "remove", kit.Dict("name", "commit", "args", kit.List(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user