Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/1036/head
zouap 3 years ago
parent
commit
89b3f1b8a3
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      routers/repo/user_data_analysis.go

+ 8
- 0
routers/repo/user_data_analysis.go View File

@@ -46,6 +46,10 @@ func QueryUserStaticDataPage(ctx *context.Context) {
} }
endTime, _ = time.ParseInLocation("2006-01-02", endDate, time.Local) endTime, _ = time.ParseInLocation("2006-01-02", endDate, time.Local)
endTime = endTime.AddDate(0, 0, 1) endTime = endTime.AddDate(0, 0, 1)
if startDate == endDate {
startTime = startTime.AddDate(0, 0, 1)
endTime = endTime.AddDate(0, 0, 1)
}
isAll = false isAll = false
log.Info("startTime=" + fmt.Sprint(startTime.Unix()) + " endDate=" + fmt.Sprint(endTime.Unix())) log.Info("startTime=" + fmt.Sprint(startTime.Unix()) + " endDate=" + fmt.Sprint(endTime.Unix()))
} }
@@ -218,6 +222,10 @@ func TimingCountDataByDateAndReCount(date string, isReCount bool) {
log.Error("count user info error." + err.Error()) log.Error("count user info error." + err.Error())
mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage) mailer.SendWarnNotifyMail(setting.Warn_Notify_Mails, warnEmailMessage)
} }

if isReCount {
models.RefreshUserStaticAllTabel()
}
} }


func TimingCountDataByDate(date string) { func TimingCountDataByDate(date string) {


Loading…
Cancel
Save