From 8540642bef86a63c3a681c6bb9cf35b7696979c2 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 14 Oct 2021 23:30:15 +0000 Subject: [PATCH] works locally again Former-commit-id: 7b05707e3bf81f083805c13aed93e814f0373d30 --- src/cli/client.py | 2 +- src/cli/data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/client.py b/src/cli/client.py index e3e7241..e96620a 100644 --- a/src/cli/client.py +++ b/src/cli/client.py @@ -12,7 +12,7 @@ client.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) # Enable broadcasting mode client.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) -client.connect(("", 5678)) +client.bind(("", 5678)) while True: # Thanks @seym45 for a fix data, addr = client.recvfrom(1024) diff --git a/src/cli/data.py b/src/cli/data.py index c223a79..c46e726 100644 --- a/src/cli/data.py +++ b/src/cli/data.py @@ -193,7 +193,7 @@ def push_metric(client, competition, metric): def push_pit(client, competition, pit): for variable in pit: - + push_team_pit_data(client, competition, variable, pit[variable]) def check_new_database_matches(client, competition):