6.15.5: Драфты в статистике текущей недели
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m29s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m29s
This commit is contained in:
@@ -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.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "play-life-web",
|
||||
"version": "6.15.4",
|
||||
"version": "6.15.5",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user