From 8ea71ef95f40aade669414c4591c2c20c37d3beb Mon Sep 17 00:00:00 2001 From: poignatov Date: Wed, 4 Mar 2026 10:19:41 +0300 Subject: [PATCH] =?UTF-8?q?5.7.0:=20=D0=94=D1=80=D0=B0=D1=84=D1=82=D1=8B?= =?UTF-8?q?=20=D1=83=D1=87=D0=B8=D1=82=D1=8B=D0=B2=D0=B0=D1=8E=D1=82=D1=81?= =?UTF-8?q?=D1=8F=20=D0=B2=20today=5Fchange=20=D1=81=D1=82=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-backend/main.go | 5 +++++ play-life-web/package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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",