mirror of
https://github.com/titanscouting/tra-superscript.git
synced 2024-11-12 22:26:18 +00:00
parent
5d0fbc06c6
commit
8540642bef
@ -12,7 +12,7 @@ client.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
|||||||
# Enable broadcasting mode
|
# Enable broadcasting mode
|
||||||
client.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
client.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
||||||
|
|
||||||
client.connect(("", 5678))
|
client.bind(("", 5678))
|
||||||
while True:
|
while True:
|
||||||
# Thanks @seym45 for a fix
|
# Thanks @seym45 for a fix
|
||||||
data, addr = client.recvfrom(1024)
|
data, addr = client.recvfrom(1024)
|
||||||
|
@ -193,7 +193,7 @@ def push_metric(client, competition, metric):
|
|||||||
def push_pit(client, competition, pit):
|
def push_pit(client, competition, pit):
|
||||||
|
|
||||||
for variable in pit:
|
for variable in pit:
|
||||||
|
|
||||||
push_team_pit_data(client, competition, variable, pit[variable])
|
push_team_pit_data(client, competition, variable, pit[variable])
|
||||||
|
|
||||||
def check_new_database_matches(client, competition):
|
def check_new_database_matches(client, competition):
|
||||||
|
Loading…
Reference in New Issue
Block a user