Skip to content

Commit

Permalink
better naming, and print which variable has the dupe port
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Jan 31, 2025
1 parent e6fc45f commit 94e3cb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/port_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def main():
with open(path, "r") as f:
train = path.split("/")[-3]
app = path.split("/")[-2]
ports = extract_ports(yaml.load(f, Loader=yaml.FullLoader)["questions"])
for port in ports:
port_num = port["port"]
ports_data = extract_ports(yaml.load(f, Loader=yaml.FullLoader)["questions"])
for item in ports_data:
port_num = item["port"]
if port_num not in port_map:
port_map[port_num] = []
port_map[port_num].append(f"{train}/{app}")
port_map[port_num].append(f"{train}/{app} ({item['name']})")

ignore_ports = [53, 22000]
dupe_found = False
Expand Down

0 comments on commit 94e3cb9

Please sign in to comment.