diff --git a/dags/shop/rent/business.py b/dags/shop/rent/business.py index 6cb31fe..a7e6a4c 100644 --- a/dags/shop/rent/business.py +++ b/dags/shop/rent/business.py @@ -74,7 +74,7 @@ def calc(city, year_month): avg_price = stat['avg_price'] if pd.notna(avg_price): action = UpdateOne({'city': city, 'name': name, 'cat': 'business', 'date': year_month}, - {'$set': {'city': city, 'cat': 'business', 'date': year_month, 'avg_price': avg_price, + {'$set': {'city': city, 'name': name, 'cat': 'business', 'date': year_month, 'avg_price': avg_price, 'updated_date': datetime.now()}}, upsert=True) actions.append(action)