one fix for club stats
This commit is contained in:
@@ -8,6 +8,8 @@ def get_lewy_stats():
|
||||
stats = player_stats(id_zawodnika=1)[2][0]
|
||||
polska = robert_stats(id_klubu="polska")[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 {
|
||||
'all_time_stats': {
|
||||
'goals': stats["goals"], # 589+85
|
||||
@@ -15,7 +17,7 @@ def get_lewy_stats():
|
||||
'matches': stats["unique_items"] # 791+158
|
||||
},
|
||||
'club_stats': {
|
||||
'goals': barcelona["goals"], # 589
|
||||
'goals': barcelona["goals"] + borussia["goals"] + bayern["goals"], # 589
|
||||
'assists': barcelona["assists"], # 154
|
||||
'matches': barcelona["unique_items"] # 791 # to trochę na wyrost, bo w części meczy był kontuzjowany
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user