Fixed uploader script

This commit is contained in:
Pünkösd Marcell 2021-04-25 23:43:52 +02:00
parent 72191c3760
commit b6ea03e5ce

View File

@ -23,7 +23,7 @@ def main():
target_url = urljoin(urlbase, "program") target_url = urljoin(urlbase, "program")
r = requests.post(target_url, json=program) r = requests.post(target_url, json=program)
r.raise_for_status() 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__': if __name__ == '__main__':