еще раз 1
This commit is contained in:
@@ -51,12 +51,15 @@ def parse(line):
|
|||||||
seconds = int(timer_temp[0:2])
|
seconds = int(timer_temp[0:2])
|
||||||
milliseconds = int(timer_temp[2:])
|
milliseconds = int(timer_temp[2:])
|
||||||
timer_str = f"{seconds}.{milliseconds}"
|
timer_str = f"{seconds}.{milliseconds}"
|
||||||
|
send_data("TIMER.Text", timer_str)
|
||||||
if timer_bool == 1:
|
if timer_bool == 1:
|
||||||
quarter = temp_new[14]
|
quarter = temp_new[14]
|
||||||
points1 = (temp_new[8:11]).strip()
|
points1 = (temp_new[8:11]).strip()
|
||||||
points2 = (temp_new[11:14]).strip()
|
points2 = (temp_new[11:14]).strip()
|
||||||
fouls1 = temp_new[15]
|
fouls1 = temp_new[15]
|
||||||
fouls2 = temp_new[16]
|
fouls2 = temp_new[16]
|
||||||
|
send_data("SCORE1.Text", points1)
|
||||||
|
send_data("SCORE2.Text", points2)
|
||||||
|
|
||||||
attack_display = temp_new[51:53]
|
attack_display = temp_new[51:53]
|
||||||
if attack_display == "30":
|
if attack_display == "30":
|
||||||
@@ -79,10 +82,7 @@ def parse(line):
|
|||||||
if timer_str == "0:00":
|
if timer_str == "0:00":
|
||||||
timer_str = "0.0"
|
timer_str = "0.0"
|
||||||
|
|
||||||
send_data("TIMER.Text", timer_str)
|
|
||||||
send_data("24sec.Text", time_attack)
|
send_data("24sec.Text", time_attack)
|
||||||
send_data("SCORE1.Text", points1)
|
|
||||||
send_data("SCORE2.Text", points2)
|
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(ex)
|
print(ex)
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user