hotfix price
parent
14363f1169
commit
2d93e6adfd
|
@ -102,8 +102,11 @@ class ExcelParser:
|
||||||
data = requests.get(API_CALC_URL, params=query).json()
|
data = requests.get(API_CALC_URL, params=query).json()
|
||||||
|
|
||||||
if data.get('price', None) is not None:
|
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)
|
self.add_link_to_database(query, answer=data)
|
||||||
return {"price": int(data['price']),
|
return {"price": price,
|
||||||
"vat": int(data['percent_vat']),
|
"vat": int(data['percent_vat']),
|
||||||
"max_days": int(data['maxdays']),
|
"max_days": int(data['maxdays']),
|
||||||
"transport_delivery_date": df["Дата загрузки"]}
|
"transport_delivery_date": df["Дата загрузки"]}
|
||||||
|
|
Loading…
Reference in New Issue