未验证 提交 3c074aee 编写于 作者: Q Qiao Longfei 提交者: GitHub

simple fix no model file (#125)

上级 eb18cf33
...@@ -184,7 +184,10 @@ def histogram(): ...@@ -184,7 +184,10 @@ def histogram():
@app.route('/data/plugin/graphs/graph') @app.route('/data/plugin/graphs/graph')
def graph(): def graph():
# TODO(ChunweiYan) need to add a config for whether have graph. # TODO(ChunweiYan) need to add a config for whether have graph.
data = {'url': '/graphs/image'} if graph_image_path is None:
data = {'url': ''}
else:
data = {'url': '/graphs/image'}
result = gen_result(0, "", data) result = gen_result(0, "", data)
return Response(json.dumps(result), mimetype='application/json') return Response(json.dumps(result), mimetype='application/json')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册