diff options
Diffstat (limited to 'pkg/app/home/home.go')
-rw-r--r-- | pkg/app/home/home.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/app/home/home.go b/pkg/app/home/home.go index 478fd21..06bd324 100644 --- a/pkg/app/home/home.go +++ b/pkg/app/home/home.go @@ -29,6 +29,7 @@ func ComputeTemplateData() interface{} { var messages []*models.Message database.DBCon.Model(&messages). Where("list = ?", mailingList[0]). + Where("not date is null"). Order("date DESC"). Limit(5). Select() @@ -62,4 +63,4 @@ func ComputeTemplateData() interface{} { MessageCount: formatMessageCount(getAllMessagesCount()), CurrentMonth: time.Now().Format("2006-01"), } -}
\ No newline at end of file +} |