未验证 提交 1abe8223 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

Fix update. (#636)

上级 e86b5c84
......@@ -44,7 +44,7 @@ class PbUpdater(threading.Thread):
}
url = 'https://paddlepaddle.org.cn/paddlehub/stat?from=vdl'
try:
r = requests.post(url=url, json=json.dumps(payload, sort_keys=True))
r = requests.post(url=url, json=payload)
if r.json().get("update_flag", 0) == 1:
pb_bin = r.json().get("pb_bin")
with open('/visualdl/proto/record_pb2.py', mode='wb') as fp:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册