功能更新

main
阳光少年 1 year ago
parent 5dd19a184b
commit 49e5ca1f16

@ -9,7 +9,7 @@ print(os.environ)
if __name__ == "__main__":
import requests
url = "http://127.0.0.1:8011"
url = "http://code.quant.cm"
resp = requests.post(url, json={"code": code})
print(resp.json()["msg"])

@ -35,7 +35,6 @@ def hello_world():
out = ""
try:
log_path = f"/home/rocker/containers/{_id}/upper/logs/log"
print(f"读取: {log_path}")
with open(log_path) as f:
out = f.read()
except Exception as e:
@ -47,4 +46,4 @@ def hello_world():
return {"msg": out, code: code, "id": _id}
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8011, threaded=True)
app.run(host="0.0.0.0", port=8011, threaded=True)
Loading…
Cancel
Save