Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix wordCloud数据量大
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoo committed Aug 5, 2021
1 parent 5248cdb commit 998f273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordCloud/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (m *Module) ModuleInit(b *Core.Bot, l *logrus.Entry) error {
}
func (m *Module) DelOldWord() {
t, _ := time.ParseInLocation("2006-01-02 15:04:05", time.Now().Add(24*time.Hour).Format("2006-01-02")+" 00:00:00", time.Local)
_ = m.db.Where(" (? - hot_time) <= 691200", t.Unix()).Delete(&HotWord{}).Error
_ = m.db.Where(" (? - hot_time) >= 691200", t.Unix()).Delete(&HotWord{}).Error
}
func (m *Module) AddHotWord(word string, groupId int64) error {
var hotWord []HotWord
Expand Down

0 comments on commit 998f273

Please sign in to comment.