aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-23 15:46:59 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-23 15:46:59 +0200
commit55301d30a5c47291cafe84f483324510ee9151b4 (patch)
tree4fdabd11c8788568bf37c6b15cf5072d72ca30ec /pkg/app/list/show.go
parentImprove the importer further (diff)
downloadarchives-55301d30a5c47291cafe84f483324510ee9151b4.tar.gz
archives-55301d30a5c47291cafe84f483324510ee9151b4.tar.bz2
archives-55301d30a5c47291cafe84f483324510ee9151b4.zip
Clean up the code
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/app/list/show.go')
-rw-r--r--pkg/app/list/show.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/pkg/app/list/show.go b/pkg/app/list/show.go
index 5231b5b..79ea8f2 100644
--- a/pkg/app/list/show.go
+++ b/pkg/app/list/show.go
@@ -31,13 +31,6 @@ func ComputeShowTemplateData(listName string) interface{} {
WhereOr(`subject LIKE 'Re: [` + listName + `]%'`)
return q, nil
}).
- //WhereGroup(func(q *orm.Query) (*orm.Query, error) {
- // q = q.WhereOr(`to LIKE '%` + listName + `@lists.gentoo.org%'`).
- // WhereOr(`cc LIKE '%` + listName + `@lists.gentoo.org%'`).
- // WhereOr(`to LIKE '%` + listName + `@gentoo.org%'`).
- // WhereOr(`cc LIKE '%` + listName + `@gentoo.org%'`)
- // return q, nil
- //}).
ColumnExpr("to_char(date, 'YYYY-MM') AS combined_date").
ColumnExpr("count(*) AS message_count").
Group("combined_date").