修复bug

This commit is contained in:
shenjian@fangjia.com
2023-02-23 17:35:58 +08:00
parent 544ab4fea9
commit 526f5a8de4
@@ -33,6 +33,9 @@ def sync(city=None):
seaweed_df = seaweed_df.reset_index(drop=True)
deal_price_df = commutils.get_deal_avg_price(cities, 3)
if len(deal_price_df) <= 0:
log.info(f"无成交,无需同步")
return
deal_price_df = deal_price_df[['match_city', 'match_region', 'match_name', 'avg_price']]
deal_price_df = deal_price_df.rename(columns={'match_city': 'city', 'match_region': 'region', 'match_name': 'name',
'avg_price': 'three_month_trade_avg_price'})