From e7d3cb96d9e65a7500e92d9c0dda1f11e764cc2e Mon Sep 17 00:00:00 2001 From: Brian Ridings Date: Wed, 13 Dec 2017 01:45:30 -0500 Subject: [PATCH] Fix Post --- MonteCarlo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MonteCarlo.py b/MonteCarlo.py index f3a4381..abcfe26 100644 --- a/MonteCarlo.py +++ b/MonteCarlo.py @@ -133,7 +133,7 @@ def save(training_data, network): #Upload Game to server try: - r = requests.post("https://zero.generalzero.org/submit_game", files={"game": open(os.path.join(os.getcwd(), network, "Game_{}.hdf5".format(name)), 'rb'), "network": network}) + r = requests.post("https://zero.generalzero.org/submit_game", data={"network": network}, files={"game": open(os.path.join(os.getcwd(), network, "Game_{}.hdf5".format(name)), 'rb')}) if r.status_code == 200: print("Game saved to Server") else: