Fix scripts to match API changes.

This commit is contained in:
FiveMovesAhead 2025-11-26 16:36:31 +00:00
parent 4c5152610c
commit faed37fb63
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ def main():
c_id = next(
(
c['id'] for c in challenges
if c['details']['name'] == CHALLENGE
if c['config']['name'] == CHALLENGE
),
None
)

View File

@ -26,7 +26,7 @@ def main():
c_id = next(
(
c['id'] for c in challenges
if c['details']['name'] == CHALLENGE
if c['config']['name'] == CHALLENGE
),
None
)

View File

@ -20,7 +20,7 @@ def main():
challenges = sorted(challenges, key=lambda x: x['id'])
for c in challenges:
status = f"active @ round {c['state']['round_active']}"
print(f"id: {c['id']:<7} name: {c['details']['name']:<20} status: {status}")
print(f"id: {c['id']:<7} name: {c['config']['name']:<20} status: {status}")
if __name__ == "__main__":
main()