提交 62f074e9 编写于 作者: G guru4elephant

delete fetch key in feed

上级 f97c2097
...@@ -107,6 +107,8 @@ class WebService(object): ...@@ -107,6 +107,8 @@ class WebService(object):
if "fetch" not in request.json: if "fetch" not in request.json:
abort(400) abort(400)
feed, fetch = self.preprocess(request.json, request.json["fetch"]) feed, fetch = self.preprocess(request.json, request.json["fetch"])
if "fetch" in feed:
del feed["fetch"]
fetch_map = client_list[0].predict(feed=feed, fetch=fetch) fetch_map = client_list[0].predict(feed=feed, fetch=fetch)
fetch_map = self.postprocess( fetch_map = self.postprocess(
feed=request.json, fetch=fetch, fetch_map=fetch_map) feed=request.json, fetch=fetch, fetch_map=fetch_map)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册