调试
This commit is contained in:
@@ -109,17 +109,20 @@ def sync(city=None):
|
|||||||
print(lat)
|
print(lat)
|
||||||
print(price)
|
print(price)
|
||||||
print(index)
|
print(index)
|
||||||
seaweed_df.loc[index, 'avg_cost'] = price
|
if pd.notna(price):
|
||||||
|
seaweed_df.loc[index, 'avg_cost'] = int(price)
|
||||||
|
else:
|
||||||
|
seaweed_df.loc[index, 'avg_cost'] = None
|
||||||
if item['_id'] == '50bd172ae4b0fbe60a6fe628':
|
if item['_id'] == '50bd172ae4b0fbe60a6fe628':
|
||||||
print(seaweed_df.loc[index])
|
print(seaweed_df.loc[index])
|
||||||
with ThreadPoolExecutor(max_workers=30) as pool:
|
# with ThreadPoolExecutor(max_workers=30) as pool:
|
||||||
for index, item in seaweed_df.iterrows():
|
# for index, item in seaweed_df.iterrows():
|
||||||
pool.submit(find_around_price_item, index, item)
|
# pool.submit(find_around_price_item, index, item)
|
||||||
# for index, item in seaweed_df.iterrows():
|
for index, item in seaweed_df[seaweed_df['_id'] == '50bd172ae4b0fbe60a6fe628'].iterrows():
|
||||||
# find_around_price_item(index, item)
|
find_around_price_item(index, item)
|
||||||
actions = list()
|
actions = list()
|
||||||
count = 0
|
count = 0
|
||||||
for index, item in seaweed_df.iterrows():
|
for index, item in seaweed_df[seaweed_df['_id'] == '50bd172ae4b0fbe60a6fe628'].iterrows():
|
||||||
if item['_id'] == '50bd172ae4b0fbe60a6fe628':
|
if item['_id'] == '50bd172ae4b0fbe60a6fe628':
|
||||||
print(item)
|
print(item)
|
||||||
doc_info = build_doc(item)
|
doc_info = build_doc(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user