Commit 5942a463 authored by Kento HASEGAWA's avatar Kento HASEGAWA

Merge branch 'comm-client' into 'comm'

Fix a little

See merge request adc2018/adc2018-system!15
parents 4c07a92e 8b487b08
...@@ -50,7 +50,9 @@ def start(): ...@@ -50,7 +50,9 @@ def start():
"client": client_baseurl, "client": client_baseurl,
"req_id": request.form['req_id'], "req_id": request.form['req_id'],
"resolver": request.form['resolver'] "resolver": request.form['resolver']
} }
print(option['req_id'])
pynqrouter.start_solver(boardstr, qseed, option) pynqrouter.start_solver(boardstr, qseed, option)
......
...@@ -99,7 +99,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): ...@@ -99,7 +99,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
solver_thread.stopped() solver_thread.stopped()
solver_thread = None solver_thread = None
if "host" in option: 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 return res
# ボード文字列から X, Y, Z を読んでくる # ボード文字列から X, Y, Z を読んでくる
...@@ -149,7 +149,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): ...@@ -149,7 +149,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
solver_thread.stopped() solver_thread.stopped()
solver_thread = None solver_thread = None
if "host" in option: 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 return res
# 完了の確認 # 完了の確認
...@@ -168,7 +168,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()): ...@@ -168,7 +168,7 @@ def solve(boardstr, seed=12345, zero_padding=False, option=dict()):
mmio_led.write(0, 0) mmio_led.write(0, 0)
sys.stderr.write('Cannot solve it!\n') sys.stderr.write('Cannot solve it!\n')
if "host" in option: 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 solver_thread = None
return res return res
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment