6.15.5: Драфты в статистике текущей недели
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m29s

This commit is contained in:
poignatov
2026-03-13 15:41:10 +03:00
parent b51b9421be
commit 06b7c614ed
4 changed files with 12 additions and 2 deletions

View File

@@ -1 +1 @@
6.15.4
6.15.5

View File

@@ -7469,6 +7469,16 @@ func (a *App) getFullStatisticsHandler(w http.ResponseWriter, r *http.Request) {
return
}
// Добавляем pending scores из драфтов с auto_complete=true
draftPendingScores, err := a.getDraftPendingScores(userID)
if err != nil {
log.Printf("Error getting draft pending scores for full statistics: %v", err)
} else {
for projectID, pendingScore := range draftPendingScores {
currentWeekScores[projectID] += pendingScore
}
}
// Получаем ISO год и неделю для текущей даты (в настроенном часовом поясе)
timezoneStr := getEnv("TIMEZONE", "UTC")
loc, locErr := time.LoadLocation(timezoneStr)

Binary file not shown.

View File

@@ -1,6 +1,6 @@
{
"name": "play-life-web",
"version": "6.15.4",
"version": "6.15.5",
"type": "module",
"scripts": {
"dev": "vite",