forked from ALHP/ALHP.GO
do not include skipped packages in LTO stats
This commit is contained in:
2
main.go
2
main.go
@@ -445,7 +445,7 @@ func (b *BuildManager) htmlWorker() {
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
db.DbPackage.Query().GroupBy(dbpackage.FieldLto).Aggregate(ent.Count()).ScanX(context.Background(), &v2)
|
||||
db.DbPackage.Query().Where(dbpackage.StatusNEQ(dbpackage.StatusSkipped)).GroupBy(dbpackage.FieldLto).Aggregate(ent.Count()).ScanX(context.Background(), &v2)
|
||||
|
||||
for _, c := range v2 {
|
||||
switch c.Status {
|
||||
|
Reference in New Issue
Block a user