Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.4.1^2
zouap 3 years ago
parent
commit
d177c5ff60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user_business_analysis.go

+ 1
- 1
models/user_business_analysis.go View File

@@ -535,7 +535,7 @@ func refreshUserStaticTable(wikiCountMap map[string]int, tableName string, pageS
//normalization
for k, v := range userIndexMap {
tmpResult := (v - minUserIndex) / (maxUserIndex - minUserIndex)
if v == maxUserIndex && tmpResult != 0 {
if tmpResult > 0.99 {
tmpResult = 0.99
}
updateUserIndex(tableName, statictisSess, k, tmpResult)


Loading…
Cancel
Save