取消临时注释,下个月继续跑批全量
This commit is contained in:
@@ -82,16 +82,9 @@ def deal(city, lng, lat):
|
|||||||
bank_df = find_around_by_location(city, location)
|
bank_df = find_around_by_location(city, location)
|
||||||
return bank_df
|
return bank_df
|
||||||
|
|
||||||
### 临时后续注释
|
|
||||||
after_dongguan = False
|
|
||||||
|
|
||||||
for city_item in city_dict:
|
for city_item in city_dict:
|
||||||
city = city_item['display']
|
city = city_item['display']
|
||||||
log.info('开始查找' + city + '周边银行')
|
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}},
|
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)))
|
{'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size(10000)))
|
||||||
if len(seaweed_df) <= 0:
|
if len(seaweed_df) <= 0:
|
||||||
|
|||||||
@@ -75,16 +75,9 @@ def deal(city, lng, lat):
|
|||||||
bus_df = find_around_by_location(city, location)
|
bus_df = find_around_by_location(city, location)
|
||||||
return bus_df
|
return bus_df
|
||||||
|
|
||||||
### 临时后续注释
|
|
||||||
after_dongguan = False
|
|
||||||
|
|
||||||
for city_item in city_dict:
|
for city_item in city_dict:
|
||||||
city = city_item['display']
|
city = city_item['display']
|
||||||
log.info('开始查找' + city + '周边交通')
|
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}},
|
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(
|
{'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size(
|
||||||
10000)))
|
10000)))
|
||||||
|
|||||||
@@ -76,16 +76,9 @@ def deal(city, lng, lat):
|
|||||||
return supermarket_df
|
return supermarket_df
|
||||||
|
|
||||||
|
|
||||||
### 临时后续注释
|
|
||||||
after_dongguan = False
|
|
||||||
|
|
||||||
for city_item in city_dict:
|
for city_item in city_dict:
|
||||||
city = city_item['display']
|
city = city_item['display']
|
||||||
log.info('开始查找' + city + '周边商场')
|
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}},
|
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(
|
{'city': 1, 'region': 1, 'name': 1, 'lng': 1, 'lat': 1}).batch_size(
|
||||||
10000)))
|
10000)))
|
||||||
|
|||||||
Reference in New Issue
Block a user