diff --git a/scripts/download_algorithm b/scripts/download_algorithm index da45fdc2..19821cf0 100644 --- a/scripts/download_algorithm +++ b/scripts/download_algorithm @@ -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 ) diff --git a/scripts/list_algorithms b/scripts/list_algorithms index cd267780..2ae5b6b5 100644 --- a/scripts/list_algorithms +++ b/scripts/list_algorithms @@ -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 ) diff --git a/scripts/list_challenges b/scripts/list_challenges index e716eafb..d48f9538 100644 --- a/scripts/list_challenges +++ b/scripts/list_challenges @@ -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() \ No newline at end of file