Browse Source

Merge pull request '解决打榜数据中评论数不准的问题。' (#2484) from zouap_static into V20220718

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2484
Reviewed-by: lewis <747342561@qq.com>
pull/2503/head
lewis 2 years ago
parent
commit
12f5691cc6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_analysis_for_activity.go

+ 1
- 1
models/user_analysis_for_activity.go View File

@@ -316,7 +316,7 @@ func queryCommentPublic(start_unix int64, end_unix int64, publicRepoIssueIdMap m
var indexTotal int64
indexTotal = 0
for {
sess.Select("id,type,poster_id").Table("comment").Where(cond).OrderBy("id asc").Limit(PAGE_SIZE, int(indexTotal))
sess.Select("id,type,poster_id,issue_id").Table("comment").Where(cond).OrderBy("id asc").Limit(PAGE_SIZE, int(indexTotal))
commentList := make([]*Comment, 0)
sess.Find(&commentList)
log.Info("query Comment size=" + fmt.Sprint(len(commentList)))


Loading…
Cancel
Save