Skip to content

Commit

Permalink
Fix Post
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneralZero authored Dec 13, 2017
1 parent 189120b commit e7d3cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MonteCarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7d3cb9

Please sign in to comment.