поправил формулировку для онлайн матчей, вместо After - End
This commit is contained in:
@@ -3126,15 +3126,15 @@ def resolve_period(ls: dict, game: dict) -> str:
|
||||
|
||||
if seconds_left == 0: # период закончился
|
||||
if period_num == 1:
|
||||
return "After 1q"
|
||||
return "End 1q"
|
||||
if period_num == 2:
|
||||
return "HT"
|
||||
if period_num == 3:
|
||||
return "After 3q"
|
||||
return "End 3q"
|
||||
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: # период в процессе
|
||||
if period_num <= 4:
|
||||
return f"Q{period_num}"
|
||||
|
||||
Reference in New Issue
Block a user