This commit is contained in:
沈健
2024-08-26 10:12:40 +08:00
parent aa0f3719a5
commit 8d07f4daff
@@ -73,7 +73,11 @@ def calc_percentile(city=None):
_id = str(item["id"])
for column in columns:
if pd.notna(item[column + '_percentile']):
row[column + '_percentile'] = int(item[column + '_percentile'])
if 'estate_charge_fix' == column:
db_column = "estate_charge_percentile"
else:
db_column = column + '_percentile'
row[db_column] = int(item[column + '_percentile'])
action = {'_op_type': 'update',
'_index': index_name,