chore: simple surge pricer

This commit is contained in:
2025-12-05 12:44:21 +01:00
parent 951b08d65e
commit a38fac9d2b
4 changed files with 52 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ def get_price(mode: Literal['hotel', 'airline'], productId: str, sessionId: Opti
elasticity=None
)
optimal_price = float(product_price_row['predicted_price'].iloc[0])
optimal_price = float(product_price_row['optimal_price'].iloc[0]) # TODO: use optimal_price everywhere as aresult
# get elasticity if available
product_elasticity = None