From 727105f11ee2bb89699e9e9934bb5ab87899eae8 Mon Sep 17 00:00:00 2001 From: Jacky Yang Date: Mon, 26 Jan 2026 17:26:43 +0800 Subject: [PATCH] 1.0.4: Updated Tactics-DeepAnalysis --- database/Web/Web_App.sqlite | Bin 36864 -> 36864 bytes web/routes/tactics.py | 31 +++++- web/services/stats_service.py | 1 - web/templates/tactics/index.html | 167 ++++++++++++++++++++++--------- 4 files changed, 147 insertions(+), 52 deletions(-) diff --git a/database/Web/Web_App.sqlite b/database/Web/Web_App.sqlite index 9daf78508a361173e51ab2c7d6401b9724c2d6b9..28e7df1dda5f1ab61f1306698fd95b9ec9281ab4 100644 GIT binary patch delta 189 zcmZozz|^pSX@WGP_Cy(HM(vFW%i>u=82Cdr3o3Z=*Eec1axw@9HtLES8|S5#yQG$- z=HwUTrskC>grp|sD(EUa-P7>2f8vXV)~B-L3m6MCQQ=zZGJ_O!L*>4ZLB zE{EXKg480f#N_NsGaxT1CqF->vbdxOXaJC#QJPa)k(mf&Rg~scmgZ#U0hwO;sg*9J miBfr~i7C06c}50CX1WH3x<+OS29{PvrdFngo8RUOD*ynbOGbhK delta 76 zcmZozz|^pSX@WGP)v%Fz_GQEU2)HU( 0 else 0 + map_stats_list.append({ + 'map_name': k, + 'count': v['count'], + 'wins': v['wins'], + 'win_rate': win_rate + }) + + # Sort by count desc + map_stats_list.sort(key=lambda x: x['count'], reverse=True) return jsonify({ 'players': player_data, 'shared_matches': [dict(m) for m in shared_matches], - 'avg_stats': avg_stats + 'avg_stats': avg_stats, + 'map_stats': map_stats_list, + 'total_shared_matches': total_shared_matches }) # API: Save Board diff --git a/web/services/stats_service.py b/web/services/stats_service.py index aefa487..8a9fb3e 100644 --- a/web/services/stats_service.py +++ b/web/services/stats_service.py @@ -345,7 +345,6 @@ class StatsService: GROUP BY m.match_id HAVING COUNT(DISTINCT mp.steam_id_64) = ? ORDER BY m.start_time DESC - LIMIT 20 """ args = list(steam_ids) diff --git a/web/templates/tactics/index.html b/web/templates/tactics/index.html index 020ea0d..3f06454 100644 --- a/web/templates/tactics/index.html +++ b/web/templates/tactics/index.html @@ -91,101 +91,154 @@

阵容化学反应分析

-
+
-
-

- 阵容构建 (0/5) - +

+ + 🏗️ + 阵容构建 (0/5) + +

-
+
- -
- -
-
+