This commit is contained in:
ading2210 2024-06-02 22:06:43 -07:00
parent e444beefaf
commit 80aa5ee868
1 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,10 @@ import json, sys
all_builds = json.load(sys.stdin)
board = all_builds["builds"][sys.argv[1]]
if "models" in board:
board = next(iter(board["models"].values()))
for device in board["models"].values():
if device["pushRecoveries"]:
board = device
break
reco_url = list(board["pushRecoveries"].values())[-1]
print(reco_url)