From 6897190840d1f3704d4a6c04e580490708d57c81 Mon Sep 17 00:00:00 2001 From: "wangwenyan@fangjia.com" Date: Wed, 5 Dec 2018 19:11:21 +0800 Subject: [PATCH] fix bug --- PriceSystem/fangjia/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/PriceSystem/fangjia/__init__.py b/PriceSystem/fangjia/__init__.py index e1f51e7..5f2bbc7 100644 --- a/PriceSystem/fangjia/__init__.py +++ b/PriceSystem/fangjia/__init__.py @@ -530,8 +530,13 @@ def findHouse2(ct, rl, lk, timd, timm): } }, "from": 0, "size": 0, "sort": [], "aggs": {}} )) - - return pd.DataFrame(query_list) + house = list() + for hit in query_list: + h = hit["_source"] + h["total_price"] = int(h["total_price"]) + h["p_date"] = int(h["p_date"]) + house.append(h) + return pd.DataFrame(house)