Skip to content

Commit

Permalink
eurczk conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
zdeneklapes committed Mar 28, 2024
1 parent 5889d53 commit 11963fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bazos/info/product.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
from os import path

from currency_converter import CurrencyConverter

product_info = {
Expand Down Expand Up @@ -59,7 +60,8 @@ def get_images(self):

def get_location_price(self, country: str) -> str:
if country == 'sk':
return str(int(int(self.price) / self.currency_rates.get_rate("EURCZK") - 1))
price = str(int(int(self.price) / (self.currency_rates.get_rate("EURCZK") - 1)))
return price
elif country == 'cz':
return self.price

Expand Down

0 comments on commit 11963fa

Please sign in to comment.