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}}} ])))