|
@ -99,7 +99,7 @@ class Client: |
|
|
def price_checker(self, amount): |
|
|
def price_checker(self, amount): |
|
|
seconds2give = 0 |
|
|
seconds2give = 0 |
|
|
for rub, sec in self.prices.items(): |
|
|
for rub, sec in self.prices.items(): |
|
|
if amount >= rub: |
|
|
if amount >= rub and seconds2give <= sec: |
|
|
seconds2give = sec |
|
|
seconds2give = sec |
|
|
return seconds2give |
|
|
return seconds2give |
|
|
|
|
|
|
|
|