fix: использовать приоритет только из weekly_goals, без fallback на projects.priority (v3.1.3)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 40s
This commit is contained in:
@@ -2186,7 +2186,7 @@ func (a *App) getWeeklyStatsHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
COALESCE(wr.total_score, 0.0000) AS total_score,
|
COALESCE(wr.total_score, 0.0000) AS total_score,
|
||||||
wg.min_goal_score,
|
wg.min_goal_score,
|
||||||
wg.max_goal_score,
|
wg.max_goal_score,
|
||||||
COALESCE(wg.priority, p.priority) AS priority
|
wg.priority AS priority
|
||||||
FROM
|
FROM
|
||||||
projects p
|
projects p
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@@ -3010,7 +3010,7 @@ func (a *App) getWeeklyStatsData() (*WeeklyStatsResponse, error) {
|
|||||||
COALESCE(wr.total_score, 0.0000) AS total_score,
|
COALESCE(wr.total_score, 0.0000) AS total_score,
|
||||||
wg.min_goal_score,
|
wg.min_goal_score,
|
||||||
wg.max_goal_score,
|
wg.max_goal_score,
|
||||||
COALESCE(wg.priority, p.priority) AS priority
|
wg.priority AS priority
|
||||||
FROM
|
FROM
|
||||||
projects p
|
projects p
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
@@ -3144,7 +3144,7 @@ func (a *App) getWeeklyStatsDataForUser(userID int) (*WeeklyStatsResponse, error
|
|||||||
COALESCE(wr.total_score, 0.0000) AS total_score,
|
COALESCE(wr.total_score, 0.0000) AS total_score,
|
||||||
wg.min_goal_score,
|
wg.min_goal_score,
|
||||||
wg.max_goal_score,
|
wg.max_goal_score,
|
||||||
COALESCE(wg.priority, p.priority) AS priority
|
wg.priority AS priority
|
||||||
FROM
|
FROM
|
||||||
projects p
|
projects p
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "play-life-web",
|
"name": "play-life-web",
|
||||||
"version": "3.1.2",
|
"version": "3.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user