diff --git a/VERSION b/VERSION index 1bc788d..42cdd0b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.6.0 +5.7.0 diff --git a/play-life-backend/main.go b/play-life-backend/main.go index 2bc55d4..8f4ba34 100644 --- a/play-life-backend/main.go +++ b/play-life-backend/main.go @@ -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, diff --git a/play-life-web/package.json b/play-life-web/package.json index e2fec46..b391f6b 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "5.6.0", + "version": "5.7.0", "type": "module", "scripts": { "dev": "vite",