one fix for club stats

This commit is contained in:
2025-06-16 22:57:19 +02:00
parent 04b12d4657
commit 45dfd38f9a

View File

@@ -8,6 +8,8 @@ def get_lewy_stats():
stats = player_stats(id_zawodnika=1)[2][0] stats = player_stats(id_zawodnika=1)[2][0]
polska = robert_stats(id_klubu="polska")[2][0] polska = robert_stats(id_klubu="polska")[2][0]
barcelona = robert_stats(id_klubu="barcelona")[2][0] barcelona = robert_stats(id_klubu="barcelona")[2][0]
borussia = robert_stats(id_klubu="dortmund")[2][0]
bayern = robert_stats(id_klubu="bayern")[2][0]
return { return {
'all_time_stats': { 'all_time_stats': {
'goals': stats["goals"], # 589+85 'goals': stats["goals"], # 589+85
@@ -15,7 +17,7 @@ def get_lewy_stats():
'matches': stats["unique_items"] # 791+158 'matches': stats["unique_items"] # 791+158
}, },
'club_stats': { 'club_stats': {
'goals': barcelona["goals"], # 589 'goals': barcelona["goals"] + borussia["goals"] + bayern["goals"], # 589
'assists': barcelona["assists"], # 154 'assists': barcelona["assists"], # 154
'matches': barcelona["unique_items"] # 791 # to trochę na wyrost, bo w części meczy był kontuzjowany 'matches': barcelona["unique_items"] # 791 # to trochę na wyrost, bo w części meczy był kontuzjowany
}, },