поправил картинки для W и L

This commit is contained in:
2025-11-22 11:56:43 +03:00
parent a27d2c3d0b
commit 1151027466

View File

@@ -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)