From 4e05eaf4817c5395d552da45d8ff97c469a19cf7 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 5 Jul 2022 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=9F=E9=87=91=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/stat/community/community_count_price_rent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/stat/community/community_count_price_rent.py b/dags/stat/community/community_count_price_rent.py index 1f3561f..ba4fb8e 100644 --- a/dags/stat/community/community_count_price_rent.py +++ b/dags/stat/community/community_count_price_rent.py @@ -54,7 +54,7 @@ week_df = pd.DataFrame(list(sqmetre_rent_conn.distinct('weekend', week = week_df.loc[len(week_df) - 1, 0] sqmetre_rent_df = pd.DataFrame(list(sqmetre_rent_conn.aggregate([ - {'$match': {'weekend': {'$gte': week}}}, + {'$match': {'weekend': {'$gte': week}, 'cat': 'district'}}, {'$group': {'_id': '$city', 'num': {'$sum': 1}}} ])))