Adjusted full-calc statistics. Use new infantry skill algorithm.
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 7s

This commit is contained in:
MaxJa4
2024-01-25 18:04:45 +01:00
parent 7338d34765
commit 93908f7da5
4 changed files with 69 additions and 15 deletions

View File

@@ -112,7 +112,7 @@ func UpdateCacheAfterExpiry(key string) {
}
if player.Clan.KeepUpdated {
score, statusCode := GetPlayerScore(player.Name)
score, statusCode := GetPlayerScoreNew(player.Name)
if score == score && score != -1 { // not NaN
if err := models.PlayerCache.SetScore(player.ID, score); err != nil {
utils.Logger.Warnf("[KeepUpdated] Failed to update cache for player %s! Error: %s", player.Name, err.Error())