diff --git a/upload.py b/upload.py index 2882b32..0cc740a 100644 --- a/upload.py +++ b/upload.py @@ -23,7 +23,7 @@ def main(): target_url = urljoin(urlbase, "program") r = requests.post(target_url, json=program) r.raise_for_status() - print(f"Upload complete, id of the uploaded program: {r.json['_id']}") + print(f"Upload complete, id of the uploaded program: {r.json()['_id']}") if __name__ == '__main__':