hotfix price

master
Ernest Litvinenko 2024-03-01 13:48:14 +03:00
parent 14363f1169
commit 2d93e6adfd
1 changed files with 4 additions and 1 deletions

View File

@ -102,8 +102,11 @@ class ExcelParser:
data = requests.get(API_CALC_URL, params=query).json()
if data.get('price', None) is not None:
price = int(data['price']) * 1.35
if price < 40000:
price = 40000
self.add_link_to_database(query, answer=data)
return {"price": int(data['price']),
return {"price": price,
"vat": int(data['percent_vat']),
"max_days": int(data['maxdays']),
"transport_delivery_date": df["Дата загрузки"]}