This commit is contained in:
shenjian@fangjia.com
2023-03-09 15:48:45 +08:00
parent 9245b3fe96
commit 42d78f95e5
+1 -1
View File
@@ -124,7 +124,7 @@ def sync(city=None):
print(lng) print(lng)
print(lat) print(lat)
print(price) print(price)
if pd.notna(price): if pd.notna(price) or price > 0:
seaweed_df.loc[index, 'avg_cost'] = price seaweed_df.loc[index, 'avg_cost'] = price
else: else:
seaweed_df.loc[index, 'avg_cost'] = None seaweed_df.loc[index, 'avg_cost'] = None