diff --git a/comm/client/main.py b/comm/client/main.py index 2376135863438e1306624c6c244756a8b653b48e..e23ef87df669c010139e35cda59eae923c3aea41 100644 --- a/comm/client/main.py +++ b/comm/client/main.py @@ -50,7 +50,9 @@ def start(): "client": client_baseurl, "req_id": request.form['req_id'], "resolver": request.form['resolver'] - } + } + + print(option['req_id']) pynqrouter.start_solver(boardstr, qseed, option) diff --git a/solver/adc2018solver.py b/solver/adc2018solver.py index 9e8660096c6a55387237dd646814663896677238..588927364024ce9f4d4d2ec61a8b6c1bff98cade 100644 --- a/solver/adc2018solver.py +++ b/solver/adc2018solver.py @@ -99,7 +99,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): solver_thread.stopped() solver_thread = None if "host" in option: - requests.post("http://{}/post".format(option['host']), data=res) + r = requests.post("http://{}/post".format(option['host']), data=res) return res # ボード文字列から X, Y, Z を読んでくる @@ -149,7 +149,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): solver_thread.stopped() solver_thread = None if "host" in option: - requests.post("http://{}/post".format(option['host']), data=res) + r = requests.post("http://{}/post".format(option['host']), data=res) return res # 完了の確認 @@ -168,7 +168,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): mmio_led.write(0, 0) sys.stderr.write('Cannot solve it!\n') if "host" in option: - requests.post("http://{}/post".format(option['host']), data=res) + r = requests.post("http://{}/post".format(option['host']), data=res) solver_thread = None return res