поправил картинки для W и L
This commit is contained in:
11
get_data.py
11
get_data.py
@@ -3681,7 +3681,15 @@ async def last_5_games():
|
||||
elif team_id == id2:
|
||||
is_win = score2 > score1
|
||||
|
||||
wl_list.append("W" if is_win else "L" if is_win is not None else "")
|
||||
wl_list.append(
|
||||
r"D:\Графика\БАСКЕТБОЛ\VTB League\ASSETS\LAST 5 GAMES\W.png"
|
||||
if is_win
|
||||
else (
|
||||
r"D:\Графика\БАСКЕТБОЛ\VTB League\ASSETS\LAST 5 GAMES\L.png"
|
||||
if is_win is not None
|
||||
else EMPTY_PHOTO_PATH
|
||||
)
|
||||
)
|
||||
|
||||
return wl_list[::-1]
|
||||
|
||||
@@ -3745,7 +3753,6 @@ async def last_5_games():
|
||||
team1_wl = calc_results_list(team1_games, team1_id)
|
||||
team2_wl = calc_results_list(team2_games, team2_id)
|
||||
|
||||
|
||||
# следующий матч
|
||||
next1 = find_next_game(team1_id)
|
||||
next2 = find_next_game(team2_id)
|
||||
|
||||
Reference in New Issue
Block a user