5.7.0: Драфты учитываются в today_change статистики
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m21s

This commit is contained in:
poignatov
2026-03-04 10:19:41 +03:00
parent e457113fc9
commit 8ea71ef95f
3 changed files with 7 additions and 2 deletions

View File

@@ -2797,6 +2797,11 @@ func (a *App) getWeeklyStatsHandler(w http.ResponseWriter, r *http.Request) {
return
}
// Добавляем pending scores из драфтов к todayScores (они будут начислены сегодня в конце дня)
for projectID, pendingScore := range draftPendingScores {
todayScores[projectID] += pendingScore
}
query := `
SELECT
p.id AS project_id,