add KR
CI Check / lint-and-check (push) Failing after 9s

This commit is contained in:
Igor
2026-07-18 23:37:11 +03:00
parent 8cd4a8b928
commit 6a401a35b0
8 changed files with 116 additions and 105 deletions
+2 -104
View File
@@ -259,110 +259,8 @@ while True:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'saintpetersburg':
shipping_cost = 300.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 12
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'novosibirsk':
shipping_cost = 500.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 20
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'ekaterinburg':
shipping_cost = 450.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 18
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'kazan':
shipping_cost = 380.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 15
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'samara':
shipping_cost = 390.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 15
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'sochi':
shipping_cost = 400.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 15
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'vladivostok':
shipping_cost = 680.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 28
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'krasnodar':
shipping_cost = 350.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 12
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'ufa':
shipping_cost = 410.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 16
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'perm':
shipping_cost = 430.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 16
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'tula':
shipping_cost = 300.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 11
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
elif city.lower() == 'kaliningrad':
shipping_cost = 480.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 19
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0
else:
# default calculation for other cities
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 25
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.8
if total_price > 12000.0:
shipping_cost = 0.0
def calculations_price(shipping_cost, total_weight, total_price):
discount = 0.0
+8
View File
@@ -0,0 +1,8 @@
if city.lower() == 'moscow':
shipping_cost = 200.0
if total_weight > 5.0:
shipping_cost += (total_weight - 5.0) * 10
if total_price > 5000.0:
shipping_cost = shipping_cost * 0.5
if total_price > 10000.0:
shipping_cost = 0.0