[Static]: quotes initial

This commit is contained in:
Denis Zheleztsov 2021-04-11 12:35:09 +03:00
parent cf027cb586
commit 2540eeee26

View File

@ -598,6 +598,7 @@ func (es ESConf) GetThreadsYear(pageNum int, echoes ...string) (posts []i2es.ESD
} }
func (es ESConf) GetLatestPosts(sum int) []i2es.ESDoc { func (es ESConf) GetLatestPosts(sum int) []i2es.ESDoc {
log.Debug(sum)
query := fmt.Sprintf(`{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": %d}`, sum) query := fmt.Sprintf(`{"sort": [{"date": {"order": "desc"}}, {"_score": {"order": "desc" }}], "size": %d}`, sum)
log.Debugf("Do %s request", query) log.Debugf("Do %s request", query)