From ef0229e75ce994f4f633a131420d3b86ce0deeff Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Sun, 19 Jun 2022 09:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E4=B8=B4=E6=97=B6=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=EF=BC=8C=E4=B8=8B=E4=B8=AA=E6=9C=88=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E8=B7=91=E6=89=B9=E5=85=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/poi/business/district_bank.py | 7 ------- dags/poi/business/district_bus.py | 7 ------- dags/poi/business/district_supermarket.py | 7 ------- 3 files changed, 21 deletions(-) diff --git a/dags/poi/business/district_bank.py b/dags/poi/business/district_bank.py index ec5cc26..e847755 100644 --- a/dags/poi/business/district_bank.py +++ b/dags/poi/business/district_bank.py @@ -82,16 +82,9 @@ def deal(city, lng, lat): bank_df = find_around_by_location(city, location) return bank_df -### 临时后续注释 -after_dongguan = False - for city_item in city_dict: city = city_item['display'] log.info('开始查找' + city + '周边银行') - if city == '昆玉': - after_dongguan = True - if not after_dongguan: - continue seaweed_df = pd.DataFrame(list(seaweed_conn.find({'city': city, 'cat': 'district', 'status': 0, 'lng': {'$ne': None}}, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size(10000))) if len(seaweed_df) <= 0: diff --git a/dags/poi/business/district_bus.py b/dags/poi/business/district_bus.py index a3f63bc..a5ff9df 100644 --- a/dags/poi/business/district_bus.py +++ b/dags/poi/business/district_bus.py @@ -75,16 +75,9 @@ def deal(city, lng, lat): bus_df = find_around_by_location(city, location) return bus_df -### 临时后续注释 -after_dongguan = False - for city_item in city_dict: city = city_item['display'] log.info('开始查找' + city + '周边交通') - if city == '昆玉': - after_dongguan = True - if not after_dongguan: - continue seaweed_df = pd.DataFrame(list(seaweed_conn.find({'city': city, 'cat': 'district', 'status': 0, 'lng': {'$ne': None}}, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size( 10000))) diff --git a/dags/poi/business/district_supermarket.py b/dags/poi/business/district_supermarket.py index 031c1f2..936cf8c 100644 --- a/dags/poi/business/district_supermarket.py +++ b/dags/poi/business/district_supermarket.py @@ -76,16 +76,9 @@ def deal(city, lng, lat): return supermarket_df -### 临时后续注释 -after_dongguan = False - for city_item in city_dict: city = city_item['display'] log.info('开始查找' + city + '周边商场') - if city == '昆玉': - after_dongguan = True - if not after_dongguan: - continue seaweed_df = pd.DataFrame(list(seaweed_conn.find({'city': city, 'cat': 'district', 'status': 0, 'lng': {'$ne': None}}, {'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size( 10000)))