поправил формулировку для онлайн матчей, вместо After - End

This commit is contained in:
2025-11-15 16:07:21 +03:00
parent c68b4739fd
commit 0542feba36

View File

@@ -3126,15 +3126,15 @@ def resolve_period(ls: dict, game: dict) -> str:
if seconds_left == 0: # период закончился if seconds_left == 0: # период закончился
if period_num == 1: if period_num == 1:
return "After 1q" return "End 1q"
if period_num == 2: if period_num == 2:
return "HT" return "HT"
if period_num == 3: if period_num == 3:
return "After 3q" return "End 3q"
if period_num == 4: if period_num == 4:
return "After 4q" if score_a == score_b else "" return "End 4q" if score_a == score_b else ""
# овертаймы # овертаймы
return f"After OT{period_num - 4}".replace("1", "") return f"End OT{period_num - 4}".replace("1", "")
else: # период в процессе else: # период в процессе
if period_num <= 4: if period_num <= 4:
return f"Q{period_num}" return f"Q{period_num}"