Fixed uploader script
This commit is contained in:
parent
72191c3760
commit
b6ea03e5ce
@ -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__':
|
||||||
|
Loading…
Reference in New Issue
Block a user