From 747c79eef2ad81dc6eceb60113100cba3e6c8767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Thu, 10 Apr 2025 10:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/shop/rent/business.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)