diff --git a/erepublik/__init__.py b/erepublik/__init__.py index a2e30fa..2f43b19 100644 --- a/erepublik/__init__.py +++ b/erepublik/__init__.py @@ -5,7 +5,7 @@ __author__ = """Eriks Karls""" __email__ = 'eriks@72.lv' __version__ = '0.20.0' -__commit_id__ = "eed244d" +__commit_id__ = "4e33717" from erepublik import classes, utils from erepublik.citizen import Citizen diff --git a/erepublik/citizen.py b/erepublik/citizen.py index 50333f5..b532c36 100644 --- a/erepublik/citizen.py +++ b/erepublik/citizen.py @@ -2463,7 +2463,7 @@ class Citizen(CitizenAnniversary, CitizenCompanies, CitizenEconomy, CitizenLeade if not best_offer.country == self.details.current_country: self.travel_to_country(best_offer.country) - rj = self.buy_from_market(amount=best_offer.amount, offer=best_offer.offer_id) + rj = self.buy_from_market(amount=amount, offer=best_offer.offer_id) if not rj.get('error'): amount_needed -= amount else: